透传thinking参数, 豆包模型用来控制是否思考

This commit is contained in:
KamiPasi
2025-06-19 12:06:42 +08:00
committed by GitHub
parent 0b9b21eafd
commit d5a3eb7d04

View File

@@ -53,6 +53,7 @@ type GeneralOpenAIRequest struct {
Modalities json.RawMessage `json:"modalities,omitempty"`
Audio json.RawMessage `json:"audio,omitempty"`
EnableThinking any `json:"enable_thinking,omitempty"` // ali
THINKING json.RawMessage `json:"thinking,omitempty"` // doubao
ExtraBody json.RawMessage `json:"extra_body,omitempty"`
WebSearchOptions *WebSearchOptions `json:"web_search_options,omitempty"`
// OpenRouter Params