Skip to content

Commit fe0c62f

Browse files
committed
Fix JsonProperty on new objects
1 parent 037606e commit fe0c62f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

api/src/main/java/com/theokanning/openai/OpenAiResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public class OpenAiResponse<T> {
3535
/**
3636
* True if there are objects after lastId
3737
*/
38-
@JsonProperty("hasMore")
38+
@JsonProperty("has_more")
3939
public boolean hasMore;
4040
}

api/src/main/java/com/theokanning/openai/threads/ThreadRequest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ public class ThreadRequest {
2323
/**
2424
* A list of messages to start the thread with. Optional.
2525
*/
26-
@JsonProperty("messages")
2726
List<MessageRequest> messages;
2827

2928
/**
3029
* Set of 16 key-value pairs that can be attached to an object.
3130
* This can be useful for storing additional information about the object in a structured format.
3231
* Keys can be a maximum of 64 characters long, and values can be a maximum of 512 characters long.
3332
*/
34-
@JsonProperty("metadata")
3533
Map<String, String> metadata;
3634
}

0 commit comments

Comments
 (0)