Merge pull request #1261 from KamiPasi/new-api-pr

透传thinking参数, 豆包模型用来控制是否思考
This commit is contained in:
Calcium-Ion
2025-06-19 14:33:41 +08:00
committed by GitHub

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