We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8127072 commit 78862a2Copy full SHA for 78862a2
chat.go
@@ -71,6 +71,8 @@ type ChatCompletionMessage struct {
71
}
72
73
type ToolCall struct {
74
+ // Index is not nil only in chat completion chunk object
75
+ Index *int `json:"index,omitempty"`
76
ID string `json:"id"`
77
Type ToolType `json:"type"`
78
Function FunctionCall `json:"function"`
0 commit comments