From 63243a9c39f9bdcf9a540bf326d06b9400923e08 Mon Sep 17 00:00:00 2001 From: vule Date: Sat, 19 Jul 2025 13:29:49 +0700 Subject: [PATCH 1/2] feat: update api endpoint & Moonshot models. I get models from api.moonshot.ai/v1/models --- app/constant.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/app/constant.ts b/app/constant.ts index 2e50eee6d..27526deb6 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -25,7 +25,7 @@ export const ALIBABA_BASE_URL = "https://dashscope.aliyuncs.com/api/"; export const TENCENT_BASE_URL = "https://hunyuan.tencentcloudapi.com"; -export const MOONSHOT_BASE_URL = "https://api.moonshot.cn"; +export const MOONSHOT_BASE_URL = "https://api.moonshot.ai"; export const IFLYTEK_BASE_URL = "https://spark-api-open.xf-yun.com"; export const DEEPSEEK_BASE_URL = "https://api.deepseek.com"; @@ -623,7 +623,18 @@ const tencentModels = [ "hunyuan-vision", ]; -const moonshotModes = ["moonshot-v1-8k", "moonshot-v1-32k", "moonshot-v1-128k"]; +const moonshotModes = [ + "moonshot-v1-auto", + "moonshot-v1-8k", + "moonshot-v1-32k", + "moonshot-v1-128k", + "moonshot-v1-8k-vision-preview", + "moonshot-v1-32k-vision-preview", + "moonshot-v1-128k-vision-preview", + "kimi-thinking-preview", + "kimi-k2-0711-preview", + "kimi-latest", +]; const iflytekModels = [ "general", From 6a8e41758a8eae37f045540b0b612c48567c579b Mon Sep 17 00:00:00 2001 From: vule Date: Sat, 19 Jul 2025 13:36:29 +0700 Subject: [PATCH 2/2] feat: update for wrong typo --- app/constant.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/constant.ts b/app/constant.ts index 27526deb6..6bececb55 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -623,7 +623,7 @@ const tencentModels = [ "hunyuan-vision", ]; -const moonshotModes = [ +const moonshotModels = [ "moonshot-v1-auto", "moonshot-v1-8k", "moonshot-v1-32k", @@ -821,7 +821,7 @@ export const DEFAULT_MODELS = [ sorted: 8, }, })), - ...moonshotModes.map((name) => ({ + ...moonshotModels.map((name) => ({ name, available: true, sorted: seq++,