Skip to content

Commit

Permalink
allow assistant tool function parameters to store raw json
Browse files Browse the repository at this point in the history
  • Loading branch information
skyscrapr committed May 19, 2024
1 parent 8c5182b commit bcb9f84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openai/assistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ type AssistantFileRequest struct {
type AssistantTool struct {
Type string `json:"type"`
Function *struct {
Description *string `json:"description,omitempty"`
Name string `json:"name"`
Parameters string `json:"parameters"`
Description *string `json:"description,omitempty"`
Name string `json:"name"`
Parameters map[string]interface{} `json:"parameters"`
} `json:"function,omitempty"`
}

Expand Down

0 comments on commit bcb9f84

Please sign in to comment.