Skip to content

Commit 6729491

Browse files
committed
fix(providers): preserve custom Alibaba Coding base URLs
Add a custom baseUrl choice so dashboard saves do not rewrite non-preset Coding Plan endpoints to the international default.
1 parent eef4064 commit 6729491

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/providers/base-url-choices.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const ALIBABA_CODING_CN_BASE_URL = "https://coding.dashscope.aliyuncs.com
4646
export const ALIBABA_CODING_BASE_URL_CHOICES: readonly ProviderBaseUrlChoice[] = [
4747
{ id: "intl", label: "International", baseUrl: ALIBABA_CODING_INTL_BASE_URL },
4848
{ id: "china", label: "China", baseUrl: ALIBABA_CODING_CN_BASE_URL },
49+
{ id: "custom", label: "Custom" },
4950
];
5051

5152
/** Match a saved baseUrl to a known choice id (`custom` when it does not match). */

0 commit comments

Comments
 (0)