opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Add support for mainland China version of siliconflow

Open leisure462 opened this issue 1 month ago • 3 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The default baseurl for siliconflow in the software is: https://api.siliconflow.com/v1, while the Chinese mainland version of siliconflow uses: https://api.siliconflow.cn/v1. Most Chinese users use the Chinese version of siliconflow as their model provider, and since China is a major provider of open source models, the user experience for Chinese users should be taken into consideration

leisure462 avatar Dec 16 '25 08:12 leisure462

sounds good

rekram1-node avatar Dec 16 '25 12:12 rekram1-node

Sounds good

Please add this feature, thank you

leisure462 avatar Dec 17 '25 01:12 leisure462

yeah we should, just so u are aware or anyone else all the models come from:

models.dev

This is a centralized list and api for models and their capabilities we source all our stuff from there, I think there are several providers we have both a .com and .cn versions

If you or anyone else wants to make a pr to that to do this feel free it shouldnt be too hard

I think this is literally just copy silicon flow and make the cn version

ill try rq

rekram1-node avatar Dec 17 '25 01:12 rekram1-node

should be there now: https://models.dev/?search=siliconflow+%28china%29

If u wanna see it in opencode ur model list refreshes occasionally, to force refresh do:

opencode models --refresh

rekram1-node avatar Dec 17 '25 18:12 rekram1-node

Thank you for your answer

leisure462 avatar Dec 18 '25 05:12 leisure462