Skip to content

Commit a2a2664

Browse files
authored
Merge pull request #6572 from jerryno6/main
feat: Update moonshot models and fix for typo
2 parents 911b497 + 6a8e417 commit a2a2664

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

app/constant.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const ALIBABA_BASE_URL = "https://dashscope.aliyuncs.com/api/";
2525

2626
export const TENCENT_BASE_URL = "https://hunyuan.tencentcloudapi.com";
2727

28-
export const MOONSHOT_BASE_URL = "https://api.moonshot.cn";
28+
export const MOONSHOT_BASE_URL = "https://api.moonshot.ai";
2929
export const IFLYTEK_BASE_URL = "https://spark-api-open.xf-yun.com";
3030

3131
export const DEEPSEEK_BASE_URL = "https://api.deepseek.com";
@@ -623,7 +623,18 @@ const tencentModels = [
623623
"hunyuan-vision",
624624
];
625625

626-
const moonshotModes = ["moonshot-v1-8k", "moonshot-v1-32k", "moonshot-v1-128k"];
626+
const moonshotModels = [
627+
"moonshot-v1-auto",
628+
"moonshot-v1-8k",
629+
"moonshot-v1-32k",
630+
"moonshot-v1-128k",
631+
"moonshot-v1-8k-vision-preview",
632+
"moonshot-v1-32k-vision-preview",
633+
"moonshot-v1-128k-vision-preview",
634+
"kimi-thinking-preview",
635+
"kimi-k2-0711-preview",
636+
"kimi-latest",
637+
];
627638

628639
const iflytekModels = [
629640
"general",
@@ -810,7 +821,7 @@ export const DEFAULT_MODELS = [
810821
sorted: 8,
811822
},
812823
})),
813-
...moonshotModes.map((name) => ({
824+
...moonshotModels.map((name) => ({
814825
name,
815826
available: true,
816827
sorted: seq++,

0 commit comments

Comments
 (0)