AIaW icon indicating copy to clipboard operation
AIaW copied to clipboard

作者考虑增加一个openai-compatible中的enable_thinking的设置吗?可以自由关闭和开启思考模式

Open yanghf1993 opened this issue 6 months ago • 4 comments

Before you submit

  • [ ] I have searched the existing issues and this is not a duplicate.

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

yanghf1993 avatar May 09 '25 02:05 yanghf1993

OpenAI 兼容格式有这个参数吗?具体哪些服务商支持?

NitroRCr avatar May 16 '25 12:05 NitroRCr

已经给你添加好了,open-compatible的sdk支持providerOptions这个参数,Qwen3可以通过这个添加enable_thinking参数

Image

构造函数里面需要添加一个name占位符

Image

yanghf1993 avatar May 16 '25 14:05 yanghf1993

Image构造函数里面的name和providerOptions保持一致

yanghf1993 avatar May 16 '25 14:05 yanghf1993

emm, 这种特定服务商/模型的参数不适合这样添加。我看等 ai-sdk v5 稳定后再支持自定义 body 和 header 字段

NitroRCr avatar May 16 '25 15:05 NitroRCr