From a24dddc7899464043986ea43c461efec0a284073 Mon Sep 17 00:00:00 2001 From: Murilo Santana Date: Wed, 5 Apr 2023 00:54:46 -0300 Subject: [PATCH] Add Name parameter for Message in CreateCompletionParams (#21) --- chat/chat.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chat/chat.go b/chat/chat.go index 13c3480..ad8a2f3 100644 --- a/chat/chat.go +++ b/chat/chat.go @@ -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) {