| 1 | import type { LocalizedText } from "./vocabulary"; |
| 2 | |
| 3 | export const MODELS_COPY = { |
| 4 | metaTitle: { en: "Models and providers · Codewhale", zh: "模型与提供商 · Codewhale" }, |
| 5 | metaDescription: { en: "Choose hosted or local models, connect your provider, and change models as your work changes.", zh: "选择托管或本地模型,连接提供商,并根据工作需要切换模型。" }, |
| 6 | kicker: { en: "Models and providers", zh: "模型与提供商" }, |
| 7 | title: { en: "The right model for your next task.", zh: "为下一项任务选择合适的模型。" }, |
| 8 | lead: { en: "Use a hosted model, connect a local server, or go through a gateway. Change models and providers as your work changes.", zh: "使用托管模型、连接本地服务,或通过网关接入。根据工作需要切换模型和提供商。" }, |
| 9 | providerDocs: { en: "Provider setup guides", zh: "提供商配置指南" }, |
| 10 | install: { en: "Install Codewhale", zh: "安装 Codewhale" }, |
| 11 | setupLabel: { en: "Get connected", zh: "建立连接" }, |
| 12 | setupTitle: { en: "Connect a provider.", zh: "连接提供商。" }, |
| 13 | setupLead: { en: "Save your key with codewhale auth set --provider <id>. In a session, use /provider to choose the provider and /model to choose the model. Local servers use the endpoint and authentication you configure.", zh: "用 codewhale auth set --provider <id> 保存密钥。在会话中,用 /provider 选择提供商,用 /model 选择模型。本地服务使用你配置的端点与认证方式。" }, |
| 14 | patterns: [ |
| 15 | { |
| 16 | title: { en: "DeepSeek", zh: "DeepSeek" }, |
| 17 | detail: { en: "The default model is {model}. Connect your DeepSeek account with an API key.", zh: "默认模型为 {model}。用 API 密钥连接你的 DeepSeek 账户。" }, |
| 18 | reference: "DEEPSEEK_API_KEY", |
| 19 | }, |
| 20 | { |
| 21 | title: { en: "Local models", zh: "本地模型" }, |
| 22 | detail: { en: "Run models with Ollama, vLLM, or SGLang. Connect Codewhale to the local server’s endpoint.", zh: "用 Ollama、vLLM 或 SGLang 运行模型,再将 Codewhale 连接到本地服务端点。" }, |
| 23 | reference: "ollama · vllm · sglang", |
| 24 | }, |
| 25 | { |
| 26 | title: { en: "OpenRouter", zh: "OpenRouter" }, |
| 27 | detail: { en: "Use one gateway to access models from several providers. Choose OpenRouter, then select your model.", zh: "通过一个网关使用多家提供商的模型。选择 OpenRouter 后,再选择模型。" }, |
| 28 | reference: "OPENROUTER_API_KEY", |
| 29 | }, |
| 30 | ], |
| 31 | listTitle: { en: "Supported providers", zh: "支持的提供商" }, |
| 32 | listLead: { en: "Provider reference for source v{version}. Use /provider to see the choices in your installed version. The setup guides cover credentials, endpoints, and model selection.", zh: "源码 v{version} 的提供商参考。在已安装版本中运行 /provider 查看可选项。配置指南介绍凭据、端点与模型选择。" }, |
| 33 | modelsTitle: { en: "Models in this release", zh: "本版本支持的模型" }, |
| 34 | modelsLead: { en: "Every model id the source declares for v{version}, merged across provider spellings. “Added” is the date the model first entered the source — not the provider’s own release date. Sort any column; the default order is most recently added.", zh: "源码 v{version} 声明的全部模型 ID,已合并不同提供商拼写。“加入时间”是模型首次进入源码的日期,而非提供商自己的发布日期。各列均可排序,默认按最近加入排列。" }, |
| 35 | colModel: { en: "Model", zh: "模型" }, |
| 36 | colProvider: { en: "Provider", zh: "提供商" }, |
| 37 | colContext: { en: "Context", zh: "上下文" }, |
| 38 | colAdded: { en: "Added", zh: "加入时间" }, |
| 39 | reasoning: { en: "reasoning", zh: "推理" }, |
| 40 | sortAsc: { en: "Sort ascending", zh: "升序排列" }, |
| 41 | sortDesc: { en: "Sort descending", zh: "降序排列" }, |
| 42 | provider: { en: "Provider", zh: "提供商" }, |
| 43 | id: { en: "Provider ID", zh: "提供商 ID" }, |
| 44 | credential: { en: "Credential setting", zh: "凭据设置" }, |
| 45 | missing: { en: "Missing your provider?", zh: "没有找到你的提供商?" }, |
| 46 | request: { en: "Request support", zh: "申请支持" }, |
| 47 | } satisfies Record<string, LocalizedText | { title: LocalizedText; detail: LocalizedText; reference: string }[]>; |
| 48 |