Add New Optional Parameters to AssistantRequest Struct (#795)
* Add more parameters to support Assistant v2 * Add goimports
This commit is contained in:
@@ -70,6 +70,9 @@ type AssistantRequest struct {
|
|||||||
FileIDs []string `json:"file_ids,omitempty"`
|
FileIDs []string `json:"file_ids,omitempty"`
|
||||||
Metadata map[string]any `json:"metadata,omitempty"`
|
Metadata map[string]any `json:"metadata,omitempty"`
|
||||||
ToolResources *AssistantToolResource `json:"tool_resources,omitempty"`
|
ToolResources *AssistantToolResource `json:"tool_resources,omitempty"`
|
||||||
|
ResponseFormat any `json:"response_format,omitempty"`
|
||||||
|
Temperature *float32 `json:"temperature,omitempty"`
|
||||||
|
TopP *float32 `json:"top_p,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalJSON provides a custom marshaller for the assistant request to handle the API use cases
|
// MarshalJSON provides a custom marshaller for the assistant request to handle the API use cases
|
||||||
|
|||||||
Reference in New Issue
Block a user