Skip to content

Commit

Permalink
fix: Updated Assistent struct with latest fields based on OpenAI docs (
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoralic authored Oct 21, 2024
1 parent fb15ff9 commit 3672c0d
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions assistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ const (
)

type Assistant struct {
ID string `json:"id"`
Object string `json:"object"`
CreatedAt int64 `json:"created_at"`
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Model string `json:"model"`
Instructions *string `json:"instructions,omitempty"`
Tools []AssistantTool `json:"tools"`
FileIDs []string `json:"file_ids,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
ToolResources *AssistantToolResource `json:"tool_resources,omitempty"`
ID string `json:"id"`
Object string `json:"object"`
CreatedAt int64 `json:"created_at"`
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
Model string `json:"model"`
Instructions *string `json:"instructions,omitempty"`
Tools []AssistantTool `json:"tools"`
ToolResources *AssistantToolResource `json:"tool_resources,omitempty"`
FileIDs []string `json:"file_ids,omitempty"` // Deprecated in v2
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
}
Expand Down

0 comments on commit 3672c0d

Please sign in to comment.