Skip to content

Commit

Permalink
Add Name parameter for Message in CreateCompletionParams (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvrilo authored Apr 5, 2023
1 parent f69f821 commit a24dddc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chat/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type Choice struct {
type Message struct {
Role string `json:"role,omitempty"`
Content string `json:"content,omitempty"`
Name string `json:"name,omitempty"`
}

func (c *Client) CreateCompletion(ctx context.Context, p *CreateCompletionParams) (*CreateCompletionResponse, error) {
Expand Down

0 comments on commit a24dddc

Please sign in to comment.