feat(config): add MiniMax provider and update existing presets
- Add MiniMax provider for Claude with extended timeout configuration - Update KAT-Coder URLs and model names to versioned variants (Pro V1/Air V1) - Unify PackyCode domain from codex.packycode.com to www.packyapi.com - Remove redundant comment in Zhipu GLM configuration
This commit is contained in:
@@ -75,7 +75,6 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
env: {
|
env: {
|
||||||
ANTHROPIC_BASE_URL: "https://open.bigmodel.cn/api/anthropic",
|
ANTHROPIC_BASE_URL: "https://open.bigmodel.cn/api/anthropic",
|
||||||
ANTHROPIC_AUTH_TOKEN: "",
|
ANTHROPIC_AUTH_TOKEN: "",
|
||||||
// 兼容旧键名,保持前端读取一致
|
|
||||||
ANTHROPIC_MODEL: "GLM-4.6",
|
ANTHROPIC_MODEL: "GLM-4.6",
|
||||||
ANTHROPIC_DEFAULT_HAIKU_MODEL: "glm-4.5-air",
|
ANTHROPIC_DEFAULT_HAIKU_MODEL: "glm-4.5-air",
|
||||||
ANTHROPIC_DEFAULT_SONNET_MODEL: "glm-4.6",
|
ANTHROPIC_DEFAULT_SONNET_MODEL: "glm-4.6",
|
||||||
@@ -132,17 +131,17 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "KAT-Coder",
|
name: "KAT-Coder",
|
||||||
websiteUrl: "https://console.streamlake.ai/wanqing/",
|
websiteUrl: "https://console.streamlake.ai",
|
||||||
apiKeyUrl: "https://console.streamlake.ai/console/wanqing/api-key",
|
apiKeyUrl: "https://console.streamlake.ai/console/api-key",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
env: {
|
env: {
|
||||||
ANTHROPIC_BASE_URL:
|
ANTHROPIC_BASE_URL:
|
||||||
"https://vanchin.streamlake.ai/api/gateway/v1/endpoints/${ENDPOINT_ID}/claude-code-proxy",
|
"https://vanchin.streamlake.ai/api/gateway/v1/endpoints/${ENDPOINT_ID}/claude-code-proxy",
|
||||||
ANTHROPIC_AUTH_TOKEN: "",
|
ANTHROPIC_AUTH_TOKEN: "",
|
||||||
ANTHROPIC_MODEL: "KAT-Coder",
|
ANTHROPIC_MODEL: "KAT-Coder-Pro V1",
|
||||||
ANTHROPIC_DEFAULT_HAIKU_MODEL: "KAT-Coder",
|
ANTHROPIC_DEFAULT_HAIKU_MODEL: "KAT-Coder-Air V1",
|
||||||
ANTHROPIC_DEFAULT_SONNET_MODEL: "KAT-Coder",
|
ANTHROPIC_DEFAULT_SONNET_MODEL: "KAT-Coder-Pro V1",
|
||||||
ANTHROPIC_DEFAULT_OPUS_MODEL: "KAT-Coder",
|
ANTHROPIC_DEFAULT_OPUS_MODEL: "KAT-Coder-Pro V1",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
category: "cn_official",
|
category: "cn_official",
|
||||||
@@ -173,6 +172,24 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
category: "cn_official",
|
category: "cn_official",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "MiniMax",
|
||||||
|
websiteUrl: "https://platform.minimaxi.com",
|
||||||
|
apiKeyUrl: "https://platform.minimaxi.com/user-center/basic-information",
|
||||||
|
settingsConfig: {
|
||||||
|
"env": {
|
||||||
|
"ANTHROPIC_BASE_URL": "https://api.minimaxi.com/anthropic",
|
||||||
|
"ANTHROPIC_AUTH_TOKEN": "",
|
||||||
|
"API_TIMEOUT_MS": "3000000",
|
||||||
|
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": 1,
|
||||||
|
"ANTHROPIC_MODEL": "MiniMax-M2",
|
||||||
|
"ANTHROPIC_DEFAULT_SONNET_MODEL": "MiniMax-M2",
|
||||||
|
"ANTHROPIC_DEFAULT_OPUS_MODEL": "MiniMax-M2",
|
||||||
|
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "MiniMax-M2"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
category: "cn_official",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "PackyCode",
|
name: "PackyCode",
|
||||||
websiteUrl: "https://www.packyapi.com",
|
websiteUrl: "https://www.packyapi.com",
|
||||||
|
|||||||
@@ -72,18 +72,18 @@ export const codexProviderPresets: CodexProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "PackyCode",
|
name: "PackyCode",
|
||||||
websiteUrl: "https://codex.packycode.com/",
|
websiteUrl: "https://www.packyapi.com",
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
auth: generateThirdPartyAuth(""),
|
auth: generateThirdPartyAuth(""),
|
||||||
config: generateThirdPartyConfig(
|
config: generateThirdPartyConfig(
|
||||||
"packycode",
|
"packycode",
|
||||||
"https://codex-api.packycode.com/v1",
|
"https://www.packyapi.com/v1",
|
||||||
"gpt-5-codex",
|
"gpt-5-codex",
|
||||||
),
|
),
|
||||||
// Codex 请求地址候选(用于地址管理/测速)
|
// Codex 请求地址候选(用于地址管理/测速)
|
||||||
endpointCandidates: [
|
endpointCandidates: [
|
||||||
"https://codex-api.packycode.com/v1",
|
"https://www.packyapi.com/v1",
|
||||||
"https://codex-api-slb.packycode.com/v1",
|
"https://api-slb.packyapi.com/v1",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user