diff --git a/openai/client.go b/openai/client.go index 2a61e0b..bcf6186 100644 --- a/openai/client.go +++ b/openai/client.go @@ -77,7 +77,7 @@ type ChatCompletionPayload struct { type CompletionPayloadMessage struct { Role string `json:"role"` Content string `json:"content"` - Name string `json:"name"` + Name string `json:"name,omitempty"` } type CompletionResponse struct {