Skip to content

Commit

Permalink
Add more parameters to support Assistant v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessamae23 committed Jul 18, 2024
1 parent 727944c commit 21f32cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ type AssistantRequest struct {
FileIDs []string `json:"file_ids,omitempty"`
Metadata map[string]any `json:"metadata,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
Expand Down

0 comments on commit 21f32cf

Please sign in to comment.