opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Add a new provider for qwen3-coder-plus requests --> alibaba-cn

Open LePao1 opened this issue 1 year ago • 4 comments

Opencode Providers

alibaba is the international site; the endpoint for its qwen3-coder-plus model is
https://dashscope-intl.aliyuncs.com/compatible-mode/v1

alibaba-cn is the China-focused site, more convenient for mainland users. We generally use the latter; its endpoint is
https://dashscope.aliyuncs.com/compatible-mode/v1

Note that the API keys for the two sites are not interchangeable.

When I use the API key I applied for on alibaba-cn and enter it into the current “alibaba” option in Opencode, it doesn’t work.

Image

LePao1 avatar Aug 31 '25 08:08 LePao1

Image

你可以手动配置一下。系统目录-.config/opencode/opencode.json文件里。你按我这个配置方式把url、api、模型替换了就能用。

gjczone avatar Aug 31 '25 12:08 gjczone

Image 你可以手动配置一下。系统目录-.config/opencode/opencode.json文件里。你按我这个配置方式把url、api、模型替换了就能用。

感谢🙏

LePao1 avatar Aug 31 '25 12:08 LePao1

Image 你可以手动配置一下。系统目录-.config/opencode/opencode.json文件里。你按我这个配置方式把url、api、模型替换了就能用。

感谢🙏

https://opencode.ai/docs/providers/ 嗯,他们网站比较清楚,关于模型的部分在providers里写的比较清楚,我就照着配置的。还有很多配置也都可以写到json文件里。供参考

gjczone avatar Aug 31 '25 13:08 gjczone

Added "Alibaba (China)" provider with https://dashscope.aliyuncs.com/compatible-mode/v1 endpoint.

Thanks @LePao1!

fwang avatar Sep 18 '25 04:09 fwang