Skip to content

Commit

Permalink
fix casing of role values in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gburt committed Nov 8, 2023
1 parent 0dbd303 commit 5e56fad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ type ChatCompletionMessage struct {

FunctionCall *FunctionCall `json:"function_call,omitempty"`

// For Role=ASSISTANT prompts this may be set to the tool calls generated by the model, such as function calls.
// For Role=assistant prompts this may be set to the tool calls generated by the model, such as function calls.
ToolCalls []ToolCall `json:"tool_calls,omitempty"`

// For Role=TOOL prompts this should be set to the ID given in the assistant's prior request to call a tool.
// For Role=tool prompts this should be set to the ID given in the assistant's prior request to call a tool.
ToolCallID string `json:"tool_call_id,omitempty"`
}

Expand Down

0 comments on commit 5e56fad

Please sign in to comment.