diff --git a/api/src/main/java/com/theokanning/openai/OpenAiResponse.java b/api/src/main/java/com/theokanning/openai/OpenAiResponse.java index fd566d03..f062fc77 100644 --- a/api/src/main/java/com/theokanning/openai/OpenAiResponse.java +++ b/api/src/main/java/com/theokanning/openai/OpenAiResponse.java @@ -35,6 +35,6 @@ public class OpenAiResponse { /** * True if there are objects after lastId */ - @JsonProperty("hasMore") + @JsonProperty("has_more") public boolean hasMore; } diff --git a/api/src/main/java/com/theokanning/openai/threads/ThreadRequest.java b/api/src/main/java/com/theokanning/openai/threads/ThreadRequest.java index 54f536bd..35fd888a 100644 --- a/api/src/main/java/com/theokanning/openai/threads/ThreadRequest.java +++ b/api/src/main/java/com/theokanning/openai/threads/ThreadRequest.java @@ -23,7 +23,6 @@ public class ThreadRequest { /** * A list of messages to start the thread with. Optional. */ - @JsonProperty("messages") List messages; /** @@ -31,6 +30,5 @@ public class ThreadRequest { * This can be useful for storing additional information about the object in a structured format. * Keys can be a maximum of 64 characters long, and values can be a maximum of 512 characters long. */ - @JsonProperty("metadata") Map metadata; }