Skip to content

Commit

Permalink
feat: add Output field to FunctionCall struct
Browse files Browse the repository at this point in the history
- Added the `Output` field to the `FunctionCall` struct as described in the OpenAI API docs.
- This field is optional and is of type `*string`.
  • Loading branch information
harnyk committed Jan 15, 2025
1 parent 2a0ff5a commit 2fec923
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ type ToolCall struct {
type FunctionCall struct {
Name string `json:"name,omitempty"`
// call function with arguments in JSON format
Arguments string `json:"arguments,omitempty"`
Arguments string `json:"arguments,omitempty"`
Output *string `json:"output,omitempty"`
}

type ChatCompletionResponseFormatType string
Expand Down

0 comments on commit 2fec923

Please sign in to comment.