fix: add missing fields in tool_calls (#558)

This commit is contained in:
Simone Vellei
2023-11-09 15:05:03 +01:00
committed by GitHub
parent 8127072553
commit 78862a2798

View File

@@ -71,6 +71,8 @@ type ChatCompletionMessage struct {
} }
type ToolCall struct { type ToolCall struct {
// Index is not nil only in chat completion chunk object
Index *int `json:"index,omitempty"`
ID string `json:"id"` ID string `json:"id"`
Type ToolType `json:"type"` Type ToolType `json:"type"`
Function FunctionCall `json:"function"` Function FunctionCall `json:"function"`