fix: Updated Assistent struct with latest fields based on OpenAI docs (#883)
This commit is contained in:
25
assistant.go
25
assistant.go
@@ -14,17 +14,20 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Assistant struct {
|
type Assistant struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Object string `json:"object"`
|
Object string `json:"object"`
|
||||||
CreatedAt int64 `json:"created_at"`
|
CreatedAt int64 `json:"created_at"`
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty"`
|
||||||
Model string `json:"model"`
|
Model string `json:"model"`
|
||||||
Instructions *string `json:"instructions,omitempty"`
|
Instructions *string `json:"instructions,omitempty"`
|
||||||
Tools []AssistantTool `json:"tools"`
|
Tools []AssistantTool `json:"tools"`
|
||||||
FileIDs []string `json:"file_ids,omitempty"`
|
ToolResources *AssistantToolResource `json:"tool_resources,omitempty"`
|
||||||
Metadata map[string]any `json:"metadata,omitempty"`
|
FileIDs []string `json:"file_ids,omitempty"` // Deprecated in v2
|
||||||
ToolResources *AssistantToolResource `json:"tool_resources,omitempty"`
|
Metadata map[string]any `json:"metadata,omitempty"`
|
||||||
|
Temperature *float32 `json:"temperature,omitempty"`
|
||||||
|
TopP *float32 `json:"top_p,omitempty"`
|
||||||
|
ResponseFormat any `json:"response_format,omitempty"`
|
||||||
|
|
||||||
httpHeader
|
httpHeader
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user