mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
feat(cli): add Coding Plan Global/Intl region support
Add support for Coding Plan international region with separate base URL: - Add CodingPlanRegion enum (CHINA, GLOBAL) for region management - Add CODING_PLAN_INTL_MODELS template with intl base URL - Add version storage for both regions (codingPlan.version/versionIntl) - Update AuthDialog to show both region options - Update useCodingPlanUpdates to handle region-specific updates - Add i18n translations for all supported languages - Fix and update unit tests Users can now choose between: - Coding Plan (Bailian, China) - https://coding.dashscope.aliyuncs.com/v1 - Coding Plan (Bailian, Global/Intl) - https://coding-intl.dashscope.aliyuncs.com/v1 Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
a0a0a70b12
commit
39360dc058
13 changed files with 684 additions and 219 deletions
|
|
@ -1421,8 +1421,13 @@ export default {
|
|||
// Auth Dialog - View Titles and Labels
|
||||
// ============================================================================
|
||||
'Coding Plan': 'Coding Plan',
|
||||
'Coding Plan (Bailian, China)': 'Coding Plan (Bailian, Китай)',
|
||||
'Coding Plan (Bailian, Global/Intl)':
|
||||
'Coding Plan (Bailian, Глобальный/Международный)',
|
||||
"Paste your api key of Bailian Coding Plan and you're all set!":
|
||||
'Вставьте ваш API-ключ Bailian Coding Plan и всё готово!',
|
||||
"Paste your api key of Coding Plan (Global/Intl) and you're all set!":
|
||||
'Вставьте ваш API-ключ Coding Plan (Глобальный/Международный) и всё готово!',
|
||||
Custom: 'Пользовательский',
|
||||
'More instructions about configuring `modelProviders` manually.':
|
||||
'Дополнительные инструкции по ручной настройке `modelProviders`.',
|
||||
|
|
@ -1431,4 +1436,17 @@ export default {
|
|||
'(Press Enter to submit, Escape to cancel)':
|
||||
'(Нажмите Enter для отправки, Escape для отмены)',
|
||||
'More instructions please check:': 'Дополнительные инструкции см.:',
|
||||
|
||||
// ============================================================================
|
||||
// Coding Plan International Updates
|
||||
// ============================================================================
|
||||
'New model configurations are available for Bailian Coding Plan (China). Update now?':
|
||||
'Доступны новые конфигурации моделей для Bailian Coding Plan (Китай). Обновить сейчас?',
|
||||
'New model configurations are available for Coding Plan (Global/Intl). Update now?':
|
||||
'Доступны новые конфигурации моделей для Coding Plan (Глобальный/Международный). Обновить сейчас?',
|
||||
'{{region}} configuration updated successfully. New models are now available.':
|
||||
'Конфигурация {{region}} успешно обновлена. Новые модели теперь доступны.',
|
||||
'Authenticated successfully with {{region}}. API key is stored in settings.env.':
|
||||
'Успешная аутентификация с {{region}}. API-ключ сохранён в settings.env.',
|
||||
'Coding Plan (Global/Intl)': 'Coding Plan (Глобальный/Международный)',
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue