From 4a9eb64f76e999f844cdeb32201296764cb0b224 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 12 Oct 2025 21:31:38 +0800 Subject: [PATCH] feat: add Longcat provider and update GLM model version - Add Longcat provider preset with Flash-Chat model configuration - Update mainModelPlaceholder from GLM-4.5 to GLM-4.6 in i18n files - Configure Longcat with max output tokens (6000) and disabled non-essential traffic --- src/config/providerPresets.ts | 18 ++++++++++++++++++ src/i18n/locales/en.json | 2 +- src/i18n/locales/zh.json | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/config/providerPresets.ts b/src/config/providerPresets.ts index 1edd9a5..3394214 100644 --- a/src/config/providerPresets.ts +++ b/src/config/providerPresets.ts @@ -127,6 +127,24 @@ export const providerPresets: ProviderPreset[] = [ }, }, }, + { + name: "Longcat", + websiteUrl: "https://longcat.chat/platform", + apiKeyUrl: "https://longcat.chat/platform/api_keys", + settingsConfig: { + env: { + ANTHROPIC_BASE_URL: "https://api.longcat.chat/anthropic", + ANTHROPIC_AUTH_TOKEN: "", + ANTHROPIC_MODEL: "LongCat-Flash-Chat", + ANTHROPIC_SMALL_FAST_MODEL: "LongCat-Flash-Chat", + ANTHROPIC_DEFAULT_SONNET_MODEL: "LongCat-Flash-Chat", + ANTHROPIC_DEFAULT_OPUS_MODEL: "LongCat-Flash-Chat", + CLAUDE_CODE_MAX_OUTPUT_TOKENS: "6000", + CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 + }, + }, + category: "cn_official", + }, { name: "PackyCode", websiteUrl: "https://www.packycode.com", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index d3a7507..b6d7507 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -169,7 +169,7 @@ "getApiKey": "Get API Key", "parameterConfig": "Parameter Config - {{name}} *", "mainModel": "Main Model (optional)", - "mainModelPlaceholder": "e.g., GLM-4.5", + "mainModelPlaceholder": "e.g., GLM-4.6", "fastModel": "Fast Model (optional)", "fastModelPlaceholder": "e.g., GLM-4.5-Air", "modelHint": "💡 Leave blank to use provider's default model", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index e4d662b..27dee3e 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -169,7 +169,7 @@ "getApiKey": "获取 API Key", "parameterConfig": "参数配置 - {{name}} *", "mainModel": "主模型 (可选)", - "mainModelPlaceholder": "例如: GLM-4.5", + "mainModelPlaceholder": "例如: GLM-4.6", "fastModel": "快速模型 (可选)", "fastModelPlaceholder": "例如: GLM-4.5-Air", "modelHint": "💡 留空将使用供应商的默认模型",