浏览代码

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

KamiPasi 6 月之前
父节点
当前提交
d5a3eb7d04
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      dto/openai_request.go

+ 1 - 0
dto/openai_request.go

@@ -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