We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c203ca0 commit af5355fCopy full SHA for af5355f
chat.go
@@ -179,7 +179,7 @@ func (m *ChatCompletionMessage) UnmarshalJSON(bs []byte) error {
179
type ToolCall struct {
180
// Index is not nil only in chat completion chunk object
181
Index *int `json:"index,omitempty"`
182
- ID string `json:"id"`
+ ID string `json:"id,omitempty"`
183
Type ToolType `json:"type"`
184
Function FunctionCall `json:"function"`
185
}
0 commit comments