Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fe0c62f

Browse filesBrowse files
committed
Fix JsonProperty on new objects
1 parent 037606e commit fe0c62f
Copy full SHA for fe0c62f

File tree

Expand file treeCollapse file tree

2 files changed

+1
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-3
lines changed

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

Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/OpenAiResponse.java
+1-1Lines 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

Copy file name to clipboardExpand all lines: api/src/main/java/com/theokanning/openai/threads/ThreadRequest.java
-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.