Skip to content

Commit

Permalink
fix: add missing fields in tool_calls (sashabaranov#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
henomis authored Nov 9, 2023
1 parent 8127072 commit 78862a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ 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 78862a2

Please sign in to comment.