From b897c34f47a5e4795bf95fba5cc14b0095b08e91 Mon Sep 17 00:00:00 2001 From: lowjiansheng <15527690+lowjiansheng@users.noreply.github.com> Date: Wed, 14 May 2025 11:56:58 +0800 Subject: [PATCH] make metadata any --- chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.go b/chat.go index c8a3e81b3..806ebfd52 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.