1 line
18 KiB
JSON
1 line
18 KiB
JSON
{"repo": "apolloyh/cc-yh", "files": {"desktop/src/config/providerPresets.ts": {"13088e3cbdcd03edb22a426f8cd55c7cd9273a2b": {"t": 1785746031.4064193, "n": 2848, "h": "a4ce8257020441d6", "c": "// Provider presets inspired by cc-switch (https://github.com/farion1231/cc-switch)\n// Original work by Jason Young, MIT License\n\nimport type { ApiFormat } from '../types/provider'\n\nexport type ModelMapping = {\n main: string\n haiku: string\n sonnet: string\n opus: string\n}\n\nexport type ProviderPreset = {\n id: string\n name: string\n baseUrl: string\n apiFormat: ApiFormat\n defaultModels: ModelMapping\n needsApiKey: boolean\n websiteUrl: string\n}\n\nexport const PROVIDER_PRESETS: ProviderPreset[] = [\n {\n id: 'official',\n name: 'Claude Official',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: false,\n websiteUrl: 'https://www.anthropic.com/claude-code',\n },\n {\n id: 'deepseek',\n name: 'DeepSeek',\n baseUrl: 'https://api.deepseek.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'deepseek-v4-pro[1m]', haiku: 'deepseek-v4-flash', sonnet: 'deepseek-v4-pro[1m]', opus: 'deepseek-v4-pro[1m]' },\n needsApiKey: true,\n websiteUrl: 'https://platform.deepseek.com',\n },\n {\n id: 'zhipuglm',\n name: 'Zhipu GLM',\n baseUrl: 'https://open.bigmodel.cn/api/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'glm-5', haiku: 'glm-5', sonnet: 'glm-5', opus: 'glm-5' },\n needsApiKey: true,\n websiteUrl: 'https://open.bigmodel.cn',\n },\n {\n id: 'kimi',\n name: 'Kimi',\n baseUrl: 'https://api.moonshot.cn/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'kimi-k2.5', haiku: 'kimi-k2.5', sonnet: 'kimi-k2.5', opus: 'kimi-k2.5' },\n needsApiKey: true,\n websiteUrl: 'https://platform.moonshot.cn',\n },\n {\n id: 'minimax',\n name: 'MiniMax',\n baseUrl: 'https://api.minimaxi.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'MiniMax-M2.7', haiku: 'MiniMax-M2.7', sonnet: 'MiniMax-M2.7', opus: 'MiniMax-M2.7' },\n needsApiKey: true,\n websiteUrl: 'https://platform.minimaxi.com',\n },\n {\n id: 'mimo',\n name: 'MiMo',\n baseUrl: 'https://token-plan-cn.xiaomimimo.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'mimo-v2.5-pro', haiku: 'mimo-v2.5-pro', sonnet: 'mimo-v2.5-pro', opus: 'mimo-v2.5-pro' },\n needsApiKey: true,\n websiteUrl: 'https://token-plan-cn.xiaomimimo.com',\n },\n {\n id: 'wenxin',\n name: '文心',\n baseUrl: 'https://aistudio.baidu.com/llm/lmapi/v3',\n apiFormat: 'openai_chat',\n defaultModels: { main: 'ernie-5.1', haiku: 'ernie-5.1', sonnet: 'ernie-5.1', opus: 'ernie-5.1' },\n needsApiKey: true,\n websiteUrl: 'https://ai.baidu.com/ai-doc/AISTUDIO/slmkadt9z',\n },\n {\n id: 'custom',\n name: 'Custom',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: true,\n websiteUrl: '',\n },\n]\n"}, "0d39734f164d7073b0287fe2b47530ab5749e320": {"t": 1785759025.0535934, "n": 2848, "h": "a4ce8257020441d6", "c": "// Provider presets inspired by cc-switch (https://github.com/farion1231/cc-switch)\n// Original work by Jason Young, MIT License\n\nimport type { ApiFormat } from '../types/provider'\n\nexport type ModelMapping = {\n main: string\n haiku: string\n sonnet: string\n opus: string\n}\n\nexport type ProviderPreset = {\n id: string\n name: string\n baseUrl: string\n apiFormat: ApiFormat\n defaultModels: ModelMapping\n needsApiKey: boolean\n websiteUrl: string\n}\n\nexport const PROVIDER_PRESETS: ProviderPreset[] = [\n {\n id: 'official',\n name: 'Claude Official',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: false,\n websiteUrl: 'https://www.anthropic.com/claude-code',\n },\n {\n id: 'deepseek',\n name: 'DeepSeek',\n baseUrl: 'https://api.deepseek.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'deepseek-v4-pro[1m]', haiku: 'deepseek-v4-flash', sonnet: 'deepseek-v4-pro[1m]', opus: 'deepseek-v4-pro[1m]' },\n needsApiKey: true,\n websiteUrl: 'https://platform.deepseek.com',\n },\n {\n id: 'zhipuglm',\n name: 'Zhipu GLM',\n baseUrl: 'https://open.bigmodel.cn/api/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'glm-5', haiku: 'glm-5', sonnet: 'glm-5', opus: 'glm-5' },\n needsApiKey: true,\n websiteUrl: 'https://open.bigmodel.cn',\n },\n {\n id: 'kimi',\n name: 'Kimi',\n baseUrl: 'https://api.moonshot.cn/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'kimi-k2.5', haiku: 'kimi-k2.5', sonnet: 'kimi-k2.5', opus: 'kimi-k2.5' },\n needsApiKey: true,\n websiteUrl: 'https://platform.moonshot.cn',\n },\n {\n id: 'minimax',\n name: 'MiniMax',\n baseUrl: 'https://api.minimaxi.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'MiniMax-M2.7', haiku: 'MiniMax-M2.7', sonnet: 'MiniMax-M2.7', opus: 'MiniMax-M2.7' },\n needsApiKey: true,\n websiteUrl: 'https://platform.minimaxi.com',\n },\n {\n id: 'mimo',\n name: 'MiMo',\n baseUrl: 'https://token-plan-cn.xiaomimimo.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'mimo-v2.5-pro', haiku: 'mimo-v2.5-pro', sonnet: 'mimo-v2.5-pro', opus: 'mimo-v2.5-pro' },\n needsApiKey: true,\n websiteUrl: 'https://token-plan-cn.xiaomimimo.com',\n },\n {\n id: 'wenxin',\n name: '文心',\n baseUrl: 'https://aistudio.baidu.com/llm/lmapi/v3',\n apiFormat: 'openai_chat',\n defaultModels: { main: 'ernie-5.1', haiku: 'ernie-5.1', sonnet: 'ernie-5.1', opus: 'ernie-5.1' },\n needsApiKey: true,\n websiteUrl: 'https://ai.baidu.com/ai-doc/AISTUDIO/slmkadt9z',\n },\n {\n id: 'custom',\n name: 'Custom',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: true,\n websiteUrl: '',\n },\n]\n"}, "b2c88f3c31ee7e046e40a34f8ab068f2ce405b2b": {"t": 1785759026.565497, "n": 2528, "h": "212c33a4de31eba2", "c": "// Provider presets inspired by cc-switch (https://github.com/farion1231/cc-switch)\n// Original work by Jason Young, MIT License\n\nimport type { ApiFormat } from '../types/provider'\n\nexport type ModelMapping = {\n main: string\n haiku: string\n sonnet: string\n opus: string\n}\n\nexport type ProviderPreset = {\n id: string\n name: string\n baseUrl: string\n apiFormat: ApiFormat\n defaultModels: ModelMapping\n needsApiKey: boolean\n websiteUrl: string\n}\n\nexport const PROVIDER_PRESETS: ProviderPreset[] = [\n {\n id: 'official',\n name: 'Claude Official',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: false,\n websiteUrl: 'https://www.anthropic.com/claude-code',\n },\n {\n id: 'deepseek',\n name: 'DeepSeek',\n baseUrl: 'https://api.deepseek.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'deepseek-v4-pro[1m]', haiku: 'deepseek-v4-flash', sonnet: 'deepseek-v4-pro[1m]', opus: 'deepseek-v4-pro[1m]' },\n needsApiKey: true,\n websiteUrl: 'https://platform.deepseek.com',\n },\n {\n id: 'zhipuglm',\n name: 'Zhipu GLM',\n baseUrl: 'https://open.bigmodel.cn/api/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'glm-5', haiku: 'glm-5', sonnet: 'glm-5', opus: 'glm-5' },\n needsApiKey: true,\n websiteUrl: 'https://open.bigmodel.cn',\n },\n {\n id: 'kimi',\n name: 'Kimi',\n baseUrl: 'https://api.moonshot.cn/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'kimi-k2.5', haiku: 'kimi-k2.5', sonnet: 'kimi-k2.5', opus: 'kimi-k2.5' },\n needsApiKey: true,\n websiteUrl: 'https://platform.moonshot.cn',\n },\n {\n id: 'minimax',\n name: 'MiniMax',\n baseUrl: 'https://api.minimaxi.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'MiniMax-M2.7', haiku: 'MiniMax-M2.7', sonnet: 'MiniMax-M2.7', opus: 'MiniMax-M2.7' },\n needsApiKey: true,\n websiteUrl: 'https://platform.minimaxi.com',\n },\n {\n id: 'mimo',\n name: 'MiMo',\n baseUrl: 'https://token-plan-cn.xiaomimimo.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'mimo-v2.5-pro', haiku: 'mimo-v2.5-pro', sonnet: 'mimo-v2.5-pro', opus: 'mimo-v2.5-pro' },\n needsApiKey: true,\n websiteUrl: 'https://token-plan-cn.xiaomimimo.com',\n },\n {\n id: 'custom',\n name: 'Custom',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: true,\n websiteUrl: '',\n },\n]\n"}, "184fe3ac6660cdf71ae4576c766d41938b0aee36": {"t": 1785759028.3759913, "n": 2506, "h": "43e22de532905631", "c": "// Provider presets inspired by cc-switch (https://github.com/farion1231/cc-switch)\n// Original work by Jason Young, MIT License\n\nimport type { ApiFormat } from '../types/provider'\n\nexport type ModelMapping = {\n main: string\n haiku: string\n sonnet: string\n opus: string\n}\n\nexport type ProviderPreset = {\n id: string\n name: string\n baseUrl: string\n apiFormat: ApiFormat\n defaultModels: ModelMapping\n needsApiKey: boolean\n websiteUrl: string\n}\n\nexport const PROVIDER_PRESETS: ProviderPreset[] = [\n {\n id: 'official',\n name: 'Claude Official',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: false,\n websiteUrl: 'https://www.anthropic.com/claude-code',\n },\n {\n id: 'deepseek',\n name: 'DeepSeek',\n baseUrl: 'https://api.deepseek.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'DeepSeek-V3.2', haiku: 'DeepSeek-V3.2', sonnet: 'DeepSeek-V3.2', opus: 'DeepSeek-V3.2' },\n needsApiKey: true,\n websiteUrl: 'https://platform.deepseek.com',\n },\n {\n id: 'zhipuglm',\n name: 'Zhipu GLM',\n baseUrl: 'https://open.bigmodel.cn/api/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'glm-5', haiku: 'glm-5', sonnet: 'glm-5', opus: 'glm-5' },\n needsApiKey: true,\n websiteUrl: 'https://open.bigmodel.cn',\n },\n {\n id: 'kimi',\n name: 'Kimi',\n baseUrl: 'https://api.moonshot.cn/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'kimi-k2.5', haiku: 'kimi-k2.5', sonnet: 'kimi-k2.5', opus: 'kimi-k2.5' },\n needsApiKey: true,\n websiteUrl: 'https://platform.moonshot.cn',\n },\n {\n id: 'minimax',\n name: 'MiniMax',\n baseUrl: 'https://api.minimaxi.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'MiniMax-M2.7', haiku: 'MiniMax-M2.7', sonnet: 'MiniMax-M2.7', opus: 'MiniMax-M2.7' },\n needsApiKey: true,\n websiteUrl: 'https://platform.minimaxi.com',\n },\n {\n id: 'mimo',\n name: 'MiMo',\n baseUrl: 'https://token-plan-cn.xiaomimimo.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'mimo-v2.5-pro', haiku: 'mimo-v2.5-pro', sonnet: 'mimo-v2.5-pro', opus: 'mimo-v2.5-pro' },\n needsApiKey: true,\n websiteUrl: 'https://token-plan-cn.xiaomimimo.com',\n },\n {\n id: 'custom',\n name: 'Custom',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: true,\n websiteUrl: '',\n },\n]\n"}, "d612f4b44002d571a6c606a6421260e782d3793d": {"t": 1785759029.5955796, "n": 2175, "h": "68bf6dc718385740", "c": "// Provider presets inspired by cc-switch (https://github.com/farion1231/cc-switch)\n// Original work by Jason Young, MIT License\n\nimport type { ApiFormat } from '../types/provider'\n\nexport type ModelMapping = {\n main: string\n haiku: string\n sonnet: string\n opus: string\n}\n\nexport type ProviderPreset = {\n id: string\n name: string\n baseUrl: string\n apiFormat: ApiFormat\n defaultModels: ModelMapping\n needsApiKey: boolean\n websiteUrl: string\n}\n\nexport const PROVIDER_PRESETS: ProviderPreset[] = [\n {\n id: 'official',\n name: 'Claude Official',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: false,\n websiteUrl: 'https://www.anthropic.com/claude-code',\n },\n {\n id: 'deepseek',\n name: 'DeepSeek',\n baseUrl: 'https://api.deepseek.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'DeepSeek-V3.2', haiku: 'DeepSeek-V3.2', sonnet: 'DeepSeek-V3.2', opus: 'DeepSeek-V3.2' },\n needsApiKey: true,\n websiteUrl: 'https://platform.deepseek.com',\n },\n {\n id: 'zhipuglm',\n name: 'Zhipu GLM',\n baseUrl: 'https://open.bigmodel.cn/api/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'glm-5', haiku: 'glm-5', sonnet: 'glm-5', opus: 'glm-5' },\n needsApiKey: true,\n websiteUrl: 'https://open.bigmodel.cn',\n },\n {\n id: 'kimi',\n name: 'Kimi',\n baseUrl: 'https://api.moonshot.cn/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'kimi-k2.5', haiku: 'kimi-k2.5', sonnet: 'kimi-k2.5', opus: 'kimi-k2.5' },\n needsApiKey: true,\n websiteUrl: 'https://platform.moonshot.cn',\n },\n {\n id: 'minimax',\n name: 'MiniMax',\n baseUrl: 'https://api.minimaxi.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'MiniMax-M2.7', haiku: 'MiniMax-M2.7', sonnet: 'MiniMax-M2.7', opus: 'MiniMax-M2.7' },\n needsApiKey: true,\n websiteUrl: 'https://platform.minimaxi.com',\n },\n {\n id: 'custom',\n name: 'Custom',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: true,\n websiteUrl: '',\n },\n]\n"}, "aad1a76c1207bfa148b1d8e18707c115a7b38ad0": {"t": 1785759030.987309, "n": 2170, "h": "982e249bee2cb047", "c": "// Provider presets inspired by cc-switch (https://github.com/farion1231/cc-switch)\n// Original work by Jason Young, MIT License\n\nimport type { ApiFormat } from '../types/provider'\n\nexport type ModelMapping = {\n main: string\n haiku: string\n sonnet: string\n opus: string\n}\n\nexport type ProviderPreset = {\n id: string\n name: string\n baseUrl: string\n apiFormat: ApiFormat\n defaultModels: ModelMapping\n needsApiKey: boolean\n websiteUrl: string\n}\n\nexport const PROVIDER_PRESETS: ProviderPreset[] = [\n {\n id: 'official',\n name: 'Claude Official',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: false,\n websiteUrl: 'https://www.anthropic.com/claude-code',\n },\n {\n id: 'deepseek',\n name: 'DeepSeek',\n baseUrl: 'https://api.deepseek.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'DeepSeek-V3.2', haiku: 'DeepSeek-V3.2', sonnet: 'DeepSeek-V3.2', opus: 'DeepSeek-V3.2' },\n needsApiKey: true,\n websiteUrl: 'https://platform.deepseek.com',\n },\n {\n id: 'zhipuglm',\n name: 'Zhipu GLM',\n baseUrl: 'https://open.bigmodel.cn/api/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'glm-5', haiku: 'glm-5', sonnet: 'glm-5', opus: 'glm-5' },\n needsApiKey: true,\n websiteUrl: 'https://open.bigmodel.cn',\n },\n {\n id: 'kimi',\n name: 'Kimi',\n baseUrl: 'https://api.moonshot.cn/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'kimi-k2.5', haiku: 'kimi-k2.5', sonnet: 'kimi-k2.5', opus: 'kimi-k2.5' },\n needsApiKey: true,\n websiteUrl: 'https://platform.moonshot.cn',\n },\n {\n id: 'minimax',\n name: 'MiniMax',\n baseUrl: 'https://api.minimaxi.com/v1',\n apiFormat: 'openai_chat',\n defaultModels: { main: 'MiniMax-M2.7', haiku: 'MiniMax-M2.7', sonnet: 'MiniMax-M2.7', opus: 'MiniMax-M2.7' },\n needsApiKey: true,\n websiteUrl: 'https://platform.minimaxi.com',\n },\n {\n id: 'custom',\n name: 'Custom',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: true,\n websiteUrl: '',\n },\n]\n"}, "29841f381b443dc0d5af531ed702255dab0208cd": {"t": 1785759032.226799, "n": 2175, "h": "68bf6dc718385740", "c": "// Provider presets inspired by cc-switch (https://github.com/farion1231/cc-switch)\n// Original work by Jason Young, MIT License\n\nimport type { ApiFormat } from '../types/provider'\n\nexport type ModelMapping = {\n main: string\n haiku: string\n sonnet: string\n opus: string\n}\n\nexport type ProviderPreset = {\n id: string\n name: string\n baseUrl: string\n apiFormat: ApiFormat\n defaultModels: ModelMapping\n needsApiKey: boolean\n websiteUrl: string\n}\n\nexport const PROVIDER_PRESETS: ProviderPreset[] = [\n {\n id: 'official',\n name: 'Claude Official',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: false,\n websiteUrl: 'https://www.anthropic.com/claude-code',\n },\n {\n id: 'deepseek',\n name: 'DeepSeek',\n baseUrl: 'https://api.deepseek.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'DeepSeek-V3.2', haiku: 'DeepSeek-V3.2', sonnet: 'DeepSeek-V3.2', opus: 'DeepSeek-V3.2' },\n needsApiKey: true,\n websiteUrl: 'https://platform.deepseek.com',\n },\n {\n id: 'zhipuglm',\n name: 'Zhipu GLM',\n baseUrl: 'https://open.bigmodel.cn/api/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'glm-5', haiku: 'glm-5', sonnet: 'glm-5', opus: 'glm-5' },\n needsApiKey: true,\n websiteUrl: 'https://open.bigmodel.cn',\n },\n {\n id: 'kimi',\n name: 'Kimi',\n baseUrl: 'https://api.moonshot.cn/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'kimi-k2.5', haiku: 'kimi-k2.5', sonnet: 'kimi-k2.5', opus: 'kimi-k2.5' },\n needsApiKey: true,\n websiteUrl: 'https://platform.moonshot.cn',\n },\n {\n id: 'minimax',\n name: 'MiniMax',\n baseUrl: 'https://api.minimaxi.com/anthropic',\n apiFormat: 'anthropic',\n defaultModels: { main: 'MiniMax-M2.7', haiku: 'MiniMax-M2.7', sonnet: 'MiniMax-M2.7', opus: 'MiniMax-M2.7' },\n needsApiKey: true,\n websiteUrl: 'https://platform.minimaxi.com',\n },\n {\n id: 'custom',\n name: 'Custom',\n baseUrl: '',\n apiFormat: 'anthropic',\n defaultModels: { main: '', haiku: '', sonnet: '', opus: '' },\n needsApiKey: true,\n websiteUrl: '',\n },\n]\n"}}}} |