Skip to content

Commit 63243a9

Browse files
committed
feat: update api endpoint & Moonshot models. I get models from api.moonshot.ai/v1/models
1 parent d958441 commit 63243a9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

app/constant.ts

Lines changed: 13 additions & 2 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 moonshotModes = [
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",

0 commit comments

Comments
 (0)