mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-24 16:32:29 +00:00
Add Standard API Key auth methods for China (dashscope.aliyuncs.com) and Global/Intl (dashscope-intl.aliyuncs.com) pay-as-you-go endpoints alongside the existing Coding Plan (subscription) endpoints. Also updates group label to 'Qwen (Alibaba Cloud Model Studio)' and fixes glm-4.7 -> glm-5 in Coding Plan note messages. Co-authored-by: wenmeng zhou <wenmengzhou@users.noreply.github.com>
71 lines
2.8 KiB
JSON
71 lines
2.8 KiB
JSON
{
|
|
"id": "modelstudio",
|
|
"providers": ["modelstudio"],
|
|
"providerAuthEnvVars": {
|
|
"modelstudio": ["MODELSTUDIO_API_KEY"]
|
|
},
|
|
"providerAuthChoices": [
|
|
{
|
|
"provider": "modelstudio",
|
|
"method": "standard-api-key-cn",
|
|
"choiceId": "modelstudio-standard-api-key-cn",
|
|
"choiceLabel": "Standard API Key for China (pay-as-you-go)",
|
|
"choiceHint": "Endpoint: dashscope.aliyuncs.com",
|
|
"groupId": "modelstudio",
|
|
"groupLabel": "Qwen (Alibaba Cloud Model Studio)",
|
|
"groupHint": "Standard / Coding Plan (CN / Global)",
|
|
"optionKey": "modelstudioStandardApiKeyCn",
|
|
"cliFlag": "--modelstudio-standard-api-key-cn",
|
|
"cliOption": "--modelstudio-standard-api-key-cn <key>",
|
|
"cliDescription": "Alibaba Cloud Model Studio Standard API key (China)"
|
|
},
|
|
{
|
|
"provider": "modelstudio",
|
|
"method": "standard-api-key",
|
|
"choiceId": "modelstudio-standard-api-key",
|
|
"choiceLabel": "Standard API Key for Global/Intl (pay-as-you-go)",
|
|
"choiceHint": "Endpoint: dashscope-intl.aliyuncs.com",
|
|
"groupId": "modelstudio",
|
|
"groupLabel": "Qwen (Alibaba Cloud Model Studio)",
|
|
"groupHint": "Standard / Coding Plan (CN / Global)",
|
|
"optionKey": "modelstudioStandardApiKey",
|
|
"cliFlag": "--modelstudio-standard-api-key",
|
|
"cliOption": "--modelstudio-standard-api-key <key>",
|
|
"cliDescription": "Alibaba Cloud Model Studio Standard API key (Global/Intl)"
|
|
},
|
|
{
|
|
"provider": "modelstudio",
|
|
"method": "api-key-cn",
|
|
"choiceId": "modelstudio-api-key-cn",
|
|
"choiceLabel": "Coding Plan API Key for China (subscription)",
|
|
"choiceHint": "Endpoint: coding.dashscope.aliyuncs.com",
|
|
"groupId": "modelstudio",
|
|
"groupLabel": "Qwen (Alibaba Cloud Model Studio)",
|
|
"groupHint": "Standard / Coding Plan (CN / Global)",
|
|
"optionKey": "modelstudioApiKeyCn",
|
|
"cliFlag": "--modelstudio-api-key-cn",
|
|
"cliOption": "--modelstudio-api-key-cn <key>",
|
|
"cliDescription": "Alibaba Cloud Model Studio Coding Plan API key (China)"
|
|
},
|
|
{
|
|
"provider": "modelstudio",
|
|
"method": "api-key",
|
|
"choiceId": "modelstudio-api-key",
|
|
"choiceLabel": "Coding Plan API Key for Global/Intl (subscription)",
|
|
"choiceHint": "Endpoint: coding-intl.dashscope.aliyuncs.com",
|
|
"groupId": "modelstudio",
|
|
"groupLabel": "Qwen (Alibaba Cloud Model Studio)",
|
|
"groupHint": "Standard / Coding Plan (CN / Global)",
|
|
"optionKey": "modelstudioApiKey",
|
|
"cliFlag": "--modelstudio-api-key",
|
|
"cliOption": "--modelstudio-api-key <key>",
|
|
"cliDescription": "Alibaba Cloud Model Studio Coding Plan API key (Global/Intl)"
|
|
}
|
|
],
|
|
"configSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {}
|
|
}
|
|
}
|