| 两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 |
| 知识库:droid指南 [2025/12/20 10:59] – [官方资源] 邪让多杰 | 知识库:droid指南 [2025/12/20 22:09] (当前版本) – 邪让多杰 |
|---|
| | macOS | ''~/.factory/config.json'' | | | macOS | ''~/.factory/config.json'' | |
| | Linux | ''~/.factory/config.json'' | | | Linux | ''~/.factory/config.json'' | |
| | |
| | <note>如果 ''config.json'' 文件不存在,需要自己手动创建。</note> |
| |
| **快速打开方式:** | **快速打开方式:** |
| |
| ===== 配置第三方渠道 (duojie.games) ===== | ===== 配置第三方渠道 (duojie.games) ===== |
| | |
| | === 获取 API Key === |
| | |
| | <note important> |
| | - 闲鱼购买的**兑换码**是用于兑换额度的,不是 API Key |
| | - API Key 需要在 [[https://api.duojie.games|令牌页面]] 自行生成创建 |
| | </note> |
| | |
| | === 配置示例 === |
| |
| 在 ''config.json'' 中添加以下配置: | 在 ''config.json'' 中添加以下配置: |
| | ''model'' | 实际调用的模型 ID | 是 | | | ''model'' | 实际调用的模型 ID | 是 | |
| | ''base_url'' | API 地址 | 是 | | | ''base_url'' | API 地址 | 是 | |
| | ''api_key'' | 你的 API 密钥 | 是 | | | ''api_key'' | 你的 API 密钥(在令牌页面生成) | 是 | |
| | ''provider'' | 提供商类型: ''anthropic'', ''openai'', ''gemini'', ''openrouter'' | 是 | | | ''provider'' | 提供商类型: ''anthropic'', ''openai'', ''gemini'', ''openrouter'' | 是 | |
| | ''supports_vision'' | 是否支持图片识别 | 否 | | | ''supports_vision'' | 是否支持图片识别 | 否 | |
| |
| A: 未登录或登录过期。运行 ''droid'' 重新登录,推荐使用 Google 账号。 | A: 未登录或登录过期。运行 ''droid'' 重新登录,推荐使用 Google 账号。 |
| | |
| | <note tip>如果Droid成功登录,你的本地会话在Factory.ai官方里能看到的。</note> |
| |
| ---- | ---- |
| **Q: 提示 API Key 无效?** | **Q: 提示 API Key 无效?** |
| |
| A: 检查 ''api_key'' 是否正确填写,注意不要有多余空格。 | A: 检查 ''api_key'' 是否正确填写。注意:闲鱼买的兑换码是兑换额度用的,API Key 需要在令牌页面单独生成。 |
| |
| ---- | ---- |
| |
| A: ''config.json'' 格式错误。使用[[https://jsonlint.com/|在线 JSON 校验工具]]检查语法,然后重启 Droid。 | A: ''config.json'' 格式错误。使用[[https://jsonlint.com/|在线 JSON 校验工具]]检查语法,然后重启 Droid。 |
| | |
| | ---- |
| | |
| | **Q: 找不到 config.json 文件?** |
| | |
| | A: 该文件默认不存在,需要自己在 ''.factory'' 目录下手动创建。 |
| |
| ---- | ---- |
| |
| * [[https://docs.factory.ai|官方文档]] | * [[https://docs.factory.ai|官方文档]] |
| | * [[https://github.com/factory-ai/factory|GitHub]] |
| | * [[https://discord.gg/zuudFXxg69|Discord 社区]] |
| | |