Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 139ada7

Browse files
author
deep-learning-dynamo
committed
logRequests: prettify json (body)
1 parent 4cf52fc commit 139ada7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/dev/ai4j/openai4j/Json.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Json {
1313
.setFieldNamingPolicy(LOWER_CASE_WITH_UNDERSCORES)
1414
.registerTypeAdapterFactory(MESSAGE_TYPE_ADAPTER_FACTORY)
1515
.registerTypeAdapter(Role.class, new RoleAdapter())
16+
.setPrettyPrinting()
1617
.create();
1718

1819
static String toJson(Object o) {

0 commit comments

Comments
 (0)