Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 3 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,37 +253,19 @@
"opencode-go",
"opencode-go-anthropic",
"opencode-zen",
"opencode-zen-anthropic",
"china-coding",
"china-standard",
"china-anthropic",
"international-coding",
"international-standard",
"international-anthropic"
"opencode-zen-anthropic"
],
"enumItemLabels": [
"%opencode-for-copilot.config.endpoint.opencodeGo.label%",
"%opencode-for-copilot.config.endpoint.opencodeGoAnthropic.label%",
"%opencode-for-copilot.config.endpoint.opencodeZen.label%",
"%opencode-for-copilot.config.endpoint.opencodeZenAnthropic.label%",
"%opencode-for-copilot.config.endpoint.chinaCoding.label%",
"%opencode-for-copilot.config.endpoint.chinaStandard.label%",
"%opencode-for-copilot.config.endpoint.chinaAnthropic.label%",
"%opencode-for-copilot.config.endpoint.internationalCoding.label%",
"%opencode-for-copilot.config.endpoint.internationalStandard.label%",
"%opencode-for-copilot.config.endpoint.internationalAnthropic.label%"
"%opencode-for-copilot.config.endpoint.opencodeZenAnthropic.label%"
],
"markdownEnumDescriptions": [
"%opencode-for-copilot.config.endpoint.opencodeGo.description%",
"%opencode-for-copilot.config.endpoint.opencodeGoAnthropic.description%",
"%opencode-for-copilot.config.endpoint.opencodeZen.description%",
"%opencode-for-copilot.config.endpoint.opencodeZenAnthropic.description%",
"%opencode-for-copilot.config.endpoint.chinaCoding.description%",
"%opencode-for-copilot.config.endpoint.chinaStandard.description%",
"%opencode-for-copilot.config.endpoint.chinaAnthropic.description%",
"%opencode-for-copilot.config.endpoint.internationalCoding.description%",
"%opencode-for-copilot.config.endpoint.internationalStandard.description%",
"%opencode-for-copilot.config.endpoint.internationalAnthropic.description%"
"%opencode-for-copilot.config.endpoint.opencodeZenAnthropic.description%"
],
"markdownDescription": "%opencode-for-copilot.config.endpoint.description%"
},
Expand Down
54 changes: 21 additions & 33 deletions package.nls.json

Large diffs are not rendered by default.

38 changes: 13 additions & 25 deletions package.nls.zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,14 @@
"opencode-for-copilot.walkthrough.title": "OpenCode for Copilot Chat",
"opencode-for-copilot.walkthrough.description": "在 Copilot Chat 中配置 OpenCode Go 模型。",
"opencode-for-copilot.walkthrough.setApiKey.title": "设置你的 OpenCode API Key",
"opencode-for-copilot.walkthrough.setApiKey.description": "订阅 [OpenCode Go](https://opencode.ai/docs/go) 并从 opencode.ai [获取 API Key](command:opencode-for-copilot.getApiKey),或使用 bigmodel.cn 的 GLM Coding Plan Token。\n[设置 Go API Key](command:opencode-for-copilot.setGoApiKey)",
"opencode-for-copilot.walkthrough.showModels.title": "显示 GLM 模型",
"opencode-for-copilot.walkthrough.showModels.description": "如果模型被隐藏,打开 VS Code 的语言模型管理器并显示 GLM 模型。\n[打开语言模型管理](command:workbench.action.chat.manage)",
"opencode-for-copilot.walkthrough.setApiKey.description": "订阅 [OpenCode Go](https://opencode.ai/docs/go) 或 [OpenCode Zen](https://opencode.ai/docs/zen),并从 opencode.ai [获取 API Key](command:opencode-for-copilot.getApiKey)。\n[设置 Go API Key](command:opencode-for-copilot.setGoApiKey)",
"opencode-for-copilot.walkthrough.showModels.title": "显示 OpenCode 模型",
"opencode-for-copilot.walkthrough.showModels.description": "如果模型被隐藏,打开 VS Code 的语言模型管理器并显示 OpenCode 模型。\n[打开语言模型管理](command:workbench.action.chat.manage)",
"opencode-for-copilot.walkthrough.advancedSettings.title": "尝试高级设置",
"opencode-for-copilot.walkthrough.advancedSettings.description": "可以在插件设置中自定义提供方与模型名称、自定义视觉代理、开启实验性设置等。\n[打开设置](command:opencode-for-copilot.openSettings)",
"opencode-for-copilot.config.title": "GLM 助手",
"opencode-for-copilot.config.baseUrl.description": "可选的 API 基础 URL 覆盖项。非空时优先级最高,会覆盖 `endpoint` 预设;留空时使用选定的 `endpoint` 预设。默认解析到 OpenCode Go:`https://opencode.ai/zen/go/v1`(OpenAI 协议)——如需使用官方 GLM 端点,请切换到 Zhipu/Z.ai 预设。",
"opencode-for-copilot.config.endpoint.description": "单值 endpoint 选择器。每个选项唯一对应一个基础 URL 和线路协议(OpenAI `/chat/completions` 或 Anthropic `/v1/messages`)。OpenCode Go 选项提供 https://opencode.ai/docs/go 上的精选开放编程模型;国内/国际选项提供官方 Zhipu/Z.ai GLM 端点。取代旧的 `region` + `apiMode` + `apiProtocol` 三件套。`baseUrl` 非空时仍会覆盖此预设。",
"opencode-for-copilot.config.endpoint.chinaCoding.label": "国内 · Coding Plan(OpenAI)",
"opencode-for-copilot.config.endpoint.chinaCoding.description": "国内 BigModel Coding Plan,走 OpenAI `/chat/completions`:`https://open.bigmodel.cn/api/coding/paas/v4`。默认值。",
"opencode-for-copilot.config.endpoint.chinaStandard.label": "国内 · 通用 API(OpenAI)",
"opencode-for-copilot.config.endpoint.chinaStandard.description": "国内 BigModel 按量付费通用 API,走 OpenAI `/chat/completions`:`https://open.bigmodel.cn/api/paas/v4`。",
"opencode-for-copilot.config.endpoint.chinaAnthropic.label": "国内 · Coding Plan(Anthropic)",
"opencode-for-copilot.config.endpoint.chinaAnthropic.description": "国内 BigModel Coding Plan,走 Anthropic `/v1/messages`:`https://open.bigmodel.cn/api/anthropic`。可能绕过某些模型的更严格速率限制。",
"opencode-for-copilot.config.endpoint.internationalCoding.label": "国际 · Coding Plan(OpenAI)",
"opencode-for-copilot.config.endpoint.internationalCoding.description": "国际 Z.ai Coding Plan,走 OpenAI `/chat/completions`:`https://api.z.ai/api/coding/paas/v4`。",
"opencode-for-copilot.config.endpoint.internationalStandard.label": "国际 · 通用 API(OpenAI)",
"opencode-for-copilot.config.endpoint.internationalStandard.description": "国际 Z.ai 按量付费通用 API,走 OpenAI `/chat/completions`:`https://api.z.ai/api/paas/v4`。",
"opencode-for-copilot.config.endpoint.internationalAnthropic.label": "国际 · Coding Plan(Anthropic)",
"opencode-for-copilot.config.endpoint.internationalAnthropic.description": "国际 Z.ai Coding Plan,走 Anthropic `/v1/messages`:`https://api.z.ai/api/anthropic`。",
"opencode-for-copilot.config.title": "OpenCode for Copilot",
"opencode-for-copilot.config.baseUrl.description": "可选的 API 基础 URL 覆盖项。非空时优先级最高,会覆盖 `endpoint` 预设;留空时使用选定的 OpenCode endpoint 预设。",
"opencode-for-copilot.config.endpoint.description": "OpenCode endpoint 选择器。每个选项对应一个基础 URL 和线路协议(OpenAI `/chat/completions` 或 Anthropic `/v1/messages`)。Go 提供订阅精选模型;Zen 提供按量付费模型。`baseUrl` 非空时仍会覆盖此预设。",
"opencode-for-copilot.config.endpoint.opencodeGo.label": "OpenCode Go(OpenAI)",
"opencode-for-copilot.config.endpoint.opencodeGo.description": "OpenCode Go 订阅,走 OpenAI `/chat/completions`:`https://opencode.ai/zen/go/v1`。提供 GLM-5.2/5.1、Kimi K2.7/K2.6、DeepSeek V4 Pro/Flash、MiMo V2.5/V2.5 Pro。默认值。在 https://opencode.ai/auth 获取 API Key。",
"opencode-for-copilot.config.endpoint.opencodeGoAnthropic.label": "OpenCode Go(Anthropic)",
Expand All @@ -47,12 +35,12 @@
"opencode-for-copilot.config.endpoint.opencodeZenAnthropic.label": "OpenCode Zen(Anthropic)",
"opencode-for-copilot.config.endpoint.opencodeZenAnthropic.description": "OpenCode Zen 按量付费,走 Anthropic `/v1/messages`:`https://opencode.ai/zen`。提供 Claude(Opus、Sonnet、Haiku)和 Qwen。在 https://opencode.ai/auth 获取 API Key。",
"opencode-for-copilot.config.maxTokens.description": "每次请求的最大输出 Token 数,设为 0 则使用 API 默认值,可用于控制成本。",
"opencode-for-copilot.config.experimental.stabilizeToolList.description": "**实验性功能**:通过预先激活可用的工具来提升 GLM 上下文缓存命中率。\n- 当已启用工具列表跨轮次变化时,这可能提高 GLM 上下文缓存命中率;\n- 请求中将包含更多函数工具定义,input tokens 可能增加,虽然缓存命中的 input tokens 单价更低,但仍会计入用量;\n- 此设置可能会在当前 Copilot 对话历史中加入内部预检工具调用。在同一对话中切换到其他模型时,部分模型提供方可能无法正确重放这段历史;如果切换模型后请求异常,请新建对话后重试。\n\n通过 [配置工具](command:workbench.action.chat.configureTools) **查看和管理**工具列表:\n\n- 64 个或更少已启用工具时通常无需开启,除非工具列表仍在跨轮次变化;\n- 超过 128 个已启用工具时不建议开启:GLM 单次 `tools` 请求最多支持 128 个 functions。考虑禁用部分不常用工具。",
"opencode-for-copilot.config.debugMode.description": "控制 GLM Copilot 写入的诊断信息量。API 返回 token 用量时会始终上报给 Copilot。\n\n- **基本** - 仅上报 token 用量,不输出诊断日志或请求 dump。\n- **元数据** - 隐私安全的诊断元数据(请求哈希、前缀重合度、工具定义变更)。不含提示词原文。使用 [`GLM: 显示日志`](command:opencode-for-copilot.showLogs) 查看。\n- **详细** - 将完整请求体写入磁盘,供本地调试。**警告:包含敏感的提示词内容。** 使用 [`GLM: 打开请求 Dump 目录`](command:opencode-for-copilot.openRequestDumpsFolder) 浏览。",
"opencode-for-copilot.config.experimental.stabilizeToolList.description": "**实验性功能**:通过预先激活可用的工具来提升上下文缓存命中率。\n- 当已启用工具列表跨轮次变化时,这可能提高上下文缓存命中率;\n- 请求中将包含更多函数工具定义,input tokens 可能增加,虽然缓存命中的 input tokens 单价更低,但仍会计入用量;\n- 此设置可能会在当前 Copilot 对话历史中加入内部预检工具调用。在同一对话中切换到其他模型时,部分模型提供方可能无法正确重放这段历史;如果切换模型后请求异常,请新建对话后重试。\n\n通过 [配置工具](command:workbench.action.chat.configureTools) **查看和管理**工具列表:\n\n- 64 个或更少已启用工具时通常无需开启,除非工具列表仍在跨轮次变化;\n- 超过 128 个已启用工具时不建议开启:API 单次 `tools` 请求最多支持 128 个 functions。考虑禁用部分不常用工具。",
"opencode-for-copilot.config.debugMode.description": "控制 OpenCode for Copilot 写入的诊断信息量。API 返回 token 用量时会始终上报给 Copilot。\n\n- **基本** - 仅上报 token 用量,不输出诊断日志或请求 dump。\n- **元数据** - 隐私安全的诊断元数据(请求哈希、前缀重合度、工具定义变更)。不含提示词原文。使用 [`OpenCode: 显示日志`](command:opencode-for-copilot.showLogs) 查看。\n- **详细** - 将完整请求体写入磁盘,供本地调试。**警告:包含敏感的提示词内容。** 使用 [`OpenCode: 打开请求 Dump 目录`](command:opencode-for-copilot.openRequestDumpsFolder) 浏览。",
"opencode-for-copilot.config.debugMode.minimal.label": "基本",
"opencode-for-copilot.config.debugMode.minimal.description": "仅上报 token 用量,不输出诊断日志或 dump。",
"opencode-for-copilot.config.debugMode.metadata.label": "元数据",
"opencode-for-copilot.config.debugMode.metadata.description": "隐私安全的元数据,可安全公开分享。使用 `GLM: 显示日志` 查看。",
"opencode-for-copilot.config.debugMode.metadata.description": "隐私安全的元数据,可安全公开分享。使用 `OpenCode: 显示日志` 查看。",
"opencode-for-copilot.config.debugMode.verbose.label": "详细",
"opencode-for-copilot.config.debugMode.verbose.description": "包含敏感的提示词内容,仅供本地调试。",
"opencode-for-copilot.config.ponytailMode.description": "在每次请求前注入“懒惰资深开发者”系统提示。模型会先在代码库、标准库、已安装依赖中查找可用方案,避免过度编码。",
Expand All @@ -72,17 +60,17 @@
"opencode-for-copilot.config.stripThinkTags.always.description": "对所有模型剥离思考标签。",
"opencode-for-copilot.config.stripThinkTags.never.label": "从不",
"opencode-for-copilot.config.stripThinkTags.never.description": "从不剥离思考标签——显示原始模型输出。",
"opencode-for-copilot.config.modelIdOverrides.description": "覆盖任意内置或自定义 GLM 模型实际发送到 API 的模型 ID。默认预填官方 GLM ID;只有 endpoint 需要不同 API 模型名时才需要为自定义模型添加映射。",
"opencode-for-copilot.config.customModels.description": "额外显示在 Copilot 模型选择器里的 GLM 兼容模型。可以写字符串模型 ID,也可以写对象:`id`、可选显示名 `name`、token 上限、`toolCalling`、`thinking`。自定义模型 ID 与内置 ID 冲突时会覆盖内置模型的 picker 与查找结果。图片附件仍会先经过现有视觉代理转成文本;自定义模型不会绕过 proxy,也不启用 native vision。",
"opencode-for-copilot.config.modelIdOverrides.description": "覆盖任意内置或自定义模型实际发送到 API 的模型 ID。默认预填 OpenCode 目录 ID;只有 endpoint 需要不同 API 模型名时才需要为自定义模型添加映射。",
"opencode-for-copilot.config.customModels.description": "额外显示在 Copilot 模型选择器里的 OpenCode 兼容模型。可以写字符串模型 ID,也可以写对象:`id`、可选显示名 `name`、token 上限、`toolCalling`、`thinking`。自定义模型 ID 与内置 ID 冲突时会覆盖内置模型的 picker 与查找结果。图片附件仍会先经过现有视觉代理转成文本;自定义模型不会绕过 proxy,也不启用 native vision。",
"opencode-for-copilot.config.customModels.string.description": "自定义模型 ID。显示名、token 上限、工具调用、思考模式和视觉代理图片支持都会使用默认值。",
"opencode-for-copilot.config.customModels.id.description": "显示在 VS Code 中的模型 ID;除非 `modelIdOverrides` 将它映射到其他 API 模型 ID,否则请求也使用这个 ID。",
"opencode-for-copilot.config.customModels.name.description": "显示名称,默认等于模型 ID。",
"opencode-for-copilot.config.customModels.maxInputTokens.description": "展示给 Copilot 的最大输入 token 数,默认 200000。",
"opencode-for-copilot.config.customModels.maxOutputTokens.description": "展示给 Copilot 的最大输出 token 数,默认 131072。",
"opencode-for-copilot.config.customModels.toolCalling.description": "该自定义模型是否支持工具调用,默认 true。",
"opencode-for-copilot.config.customModels.thinking.description": "该自定义模型是否支持思考模式,默认 true。",
"opencode-for-copilot.config.visionModel.description": "由[配置视觉代理](command:opencode-for-copilot.setVisionModel)管理的兼容设置;当选择 VS Code 视觉模型来源时,以 `vendor/id` 保存所选模型。自动模式会先尝试 GLM-4.6V-Flash,再将此 VS Code 视觉模型作为回退。旧版裸模型 ID 仍会兼容读取。",
"opencode-for-copilot.config.visionPrompt.description": "在将图片附件转发给 GLM 之前,发送给视觉代理模型的提示词。\n\n[配置视觉代理](command:opencode-for-copilot.setVisionModel)",
"opencode-for-copilot.config.visionModel.description": "由[配置视觉代理](command:opencode-for-copilot.setVisionModel)管理的兼容设置;当选择 VS Code 视觉模型来源时,以 `vendor/id` 保存所选模型。自动模式会先尝试 OpenCode 视觉模型,再将此 VS Code 视觉模型作为回退。旧版裸模型 ID 仍会兼容读取。",
"opencode-for-copilot.config.visionPrompt.description": "在将图片附件转发给聊天模型之前,发送给视觉代理模型的提示词。\n\n[配置视觉代理](command:opencode-for-copilot.setVisionModel)",
"opencode-for-copilot.config.agentRoles.description": "流水线各代理角色使用的模型:research(并行研究步骤)与review(最终代码审查)。",
"opencode-for-copilot.config.agentRoles.research.description": "并行研究步骤使用的模型。研究领域按轮询分配,配置多个模型可让研究真正并行执行。",
"opencode-for-copilot.config.agentRoles.review.description": "最终代码审查步骤使用的模型。",
Expand Down
Loading
Loading