diff --git a/src/main/java/com/unfbx/chatgpt/entity/assistant/Assistant.java b/src/main/java/com/unfbx/chatgpt/entity/assistant/Assistant.java index e10b72c..596ee3c 100644 --- a/src/main/java/com/unfbx/chatgpt/entity/assistant/Assistant.java +++ b/src/main/java/com/unfbx/chatgpt/entity/assistant/Assistant.java @@ -44,15 +44,24 @@ public class Assistant implements Serializable { */ @JsonProperty("tool_resources") private ToolResources toolResources; - /** - * 附加到该助手的文件 ID 列表。助手最多可以附加 20 个文件。文件按其创建日期升序排列。 - */ - @JsonProperty("file_ids") - private List fileIds; /** * 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 maxium of 512 characters long. */ private Map metadata; + + private Double temperature; + + @JsonProperty("top_p") + private Double topP; + + /** + * `auto` is the default value + */ + @JsonProperty("response_format") + private Object responseFormat; + + + } diff --git a/src/main/java/com/unfbx/chatgpt/entity/assistant/AssistantResponse.java b/src/main/java/com/unfbx/chatgpt/entity/assistant/AssistantResponse.java index 8254c6e..bf6cedb 100644 --- a/src/main/java/com/unfbx/chatgpt/entity/assistant/AssistantResponse.java +++ b/src/main/java/com/unfbx/chatgpt/entity/assistant/AssistantResponse.java @@ -43,11 +43,14 @@ public class AssistantResponse implements Serializable { * 助手上启用的工具列表。每个助手最多可以有 128 个工具。工具可以是 code_interpreter、retrieval或function。 */ private List tools; - /** - * 附加到该助手的文件 ID 列表。助手最多可以附加 20 个文件。文件按其创建日期升序排列。 - */ - @JsonProperty("file_ids") - private List fileIds; + + @JsonProperty("tool_resources") + private ToolResources toolResources; + + @JsonProperty("top_p") + private Double topP; + + private Double temperature; /** * 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. @@ -60,5 +63,8 @@ public class AssistantResponse implements Serializable { @JsonProperty("created_at") private Long createdAt; + @JsonProperty("response_format") + private Object responseFormat; + }