Codebuddy 本文为您介绍编码套餐接入Codebuddy的详细步骤。 CodeBuddy 是一款基于 AI 的全流程智能编程工具,致力于构建产品、设计、研发、部署无缝协作的共生环境。 第一步:安装 CodeBuddy 访问 ++CodeBuddy++ 官网下载并安装适合您的操作系统的版本。 第二步:下载安装后根据提示登录CodeBuddy 第三步:配置Coding Plan 配置文件位置 plaintext models.json 是模型配置文件,用于自定义模型列表和控制模型下拉列表的显示。 建议在用户级配置该文件:~/.codebuddy/models.json 全局配置,适用于所有项目。 配置结构 plaintext { "models": [ { "id": "GLM5", "name": "GLM5", "vendor": "TianYiYun", "url": " "apiKey": "YourAPIKey", "supportsToolCall": false, "supportsImages": false, "supportsReasoning": true }, { "id": "GLM4.7", "name": "GLM4.7", "vendor": "TianYiYun", "url": " "apiKey": "YourAPIKey", "supportsToolCall": true, "supportsImages": false, "supportsReasoning": true } ] } 注意 请妥善保管您的 API Key,不要泄露给他人,也不要直接硬编码在代码中。 配置字段说明: 字段 类型 必填 说明 id string ✓ 模型唯一标识符 name string 模型显示名称 vendor string 模型供应商(如 OpenAI, Google) apiKey string API 密钥(实际密钥值,非环境变量名) maxInputTokens number 最大输入 token 数 maxOutputTokens number 最大输出 token 数 url string API 端点 URL(必须是接口完整路径) supportsToolCall boolean 是否支持工具调用 supportsImages boolean 是否支持图片输入 supportsReasoning boolean 是否支持推理模式 第四步:配置完成后,可选择配置的模型进行对话
来自: