Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fix JsonProperty on new objects
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoKanning committed Nov 14, 2023
1 parent 037606e commit fe0c62f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ public class OpenAiResponse<T> {
/**
* True if there are objects after lastId
*/
@JsonProperty("hasMore")
@JsonProperty("has_more")
public boolean hasMore;
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ public class ThreadRequest {
/**
* A list of messages to start the thread with. Optional.
*/
@JsonProperty("messages")
List<MessageRequest> messages;

/**
* Set of 16 key-value pairs that can be attached to an object.
* 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<String, String> metadata;
}

0 comments on commit fe0c62f

Please sign in to comment.