From fe0c62f5763a091bc6a4ac7018c83b13aa1d2433 Mon Sep 17 00:00:00 2001 From: Theo Kanning Date: Mon, 13 Nov 2023 20:15:56 -0600 Subject: [PATCH] Fix JsonProperty on new objects --- api/src/main/java/com/theokanning/openai/OpenAiResponse.java | 2 +- .../main/java/com/theokanning/openai/threads/ThreadRequest.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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; }