diff --git a/chat.go b/chat.go index c8a3e81b..806ebfd5 100644 --- a/chat.go +++ b/chat.go @@ -272,7 +272,7 @@ type ChatCompletionRequest struct { // Controls effort on reasoning for reasoning models. It can be set to "low", "medium", or "high". ReasoningEffort string `json:"reasoning_effort,omitempty"` // Metadata to store with the completion. - Metadata map[string]string `json:"metadata,omitempty"` + Metadata map[string]any `json:"metadata,omitempty"` // Configuration for a predicted output. Prediction *Prediction `json:"prediction,omitempty"` // ChatTemplateKwargs provides a way to add non-standard parameters to the request body.