mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-16 13:13:41 +08:00
🐛 fix: Index is required
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user