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
This commit is contained in:
@@ -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",
|
name: "PackyCode",
|
||||||
websiteUrl: "https://www.packycode.com",
|
websiteUrl: "https://www.packycode.com",
|
||||||
|
|||||||
@@ -169,7 +169,7 @@
|
|||||||
"getApiKey": "Get API Key",
|
"getApiKey": "Get API Key",
|
||||||
"parameterConfig": "Parameter Config - {{name}} *",
|
"parameterConfig": "Parameter Config - {{name}} *",
|
||||||
"mainModel": "Main Model (optional)",
|
"mainModel": "Main Model (optional)",
|
||||||
"mainModelPlaceholder": "e.g., GLM-4.5",
|
"mainModelPlaceholder": "e.g., GLM-4.6",
|
||||||
"fastModel": "Fast Model (optional)",
|
"fastModel": "Fast Model (optional)",
|
||||||
"fastModelPlaceholder": "e.g., GLM-4.5-Air",
|
"fastModelPlaceholder": "e.g., GLM-4.5-Air",
|
||||||
"modelHint": "💡 Leave blank to use provider's default model",
|
"modelHint": "💡 Leave blank to use provider's default model",
|
||||||
|
|||||||
@@ -169,7 +169,7 @@
|
|||||||
"getApiKey": "获取 API Key",
|
"getApiKey": "获取 API Key",
|
||||||
"parameterConfig": "参数配置 - {{name}} *",
|
"parameterConfig": "参数配置 - {{name}} *",
|
||||||
"mainModel": "主模型 (可选)",
|
"mainModel": "主模型 (可选)",
|
||||||
"mainModelPlaceholder": "例如: GLM-4.5",
|
"mainModelPlaceholder": "例如: GLM-4.6",
|
||||||
"fastModel": "快速模型 (可选)",
|
"fastModel": "快速模型 (可选)",
|
||||||
"fastModelPlaceholder": "例如: GLM-4.5-Air",
|
"fastModelPlaceholder": "例如: GLM-4.5-Air",
|
||||||
"modelHint": "💡 留空将使用供应商的默认模型",
|
"modelHint": "💡 留空将使用供应商的默认模型",
|
||||||
|
|||||||
Reference in New Issue
Block a user