Skip to content

Commit

Permalink
fix: add missing fields in tool_calls
Browse files Browse the repository at this point in the history
  • Loading branch information
henomis committed Nov 9, 2023
1 parent 08c167f commit 7eb4e62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ type ChatCompletionMessage struct {
}

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

Expand Down

0 comments on commit 7eb4e62

Please sign in to comment.