🐛 fix: Index is required

This commit is contained in:
Martial BE 2024-01-03 18:15:46 +08:00 committed by Buer
parent 475dba1233
commit 47c9630169

View File

@ -12,9 +12,9 @@ type ChatCompletionToolCallsFunction struct {
type ChatCompletionToolCalls struct {
Id string `json:"id"`
Index int `json:"index,omitempty"`
Type string `json:"type"`
Function ChatCompletionToolCallsFunction `json:"function"`
Index int `json:"index"`
}
type ChatCompletionMessage struct {