瀏覽代碼

docs: add multi-model routing example to Configure section (CN + EN)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Ma 7 月之前
父節點
當前提交
eac25de1e9
共有 2 個文件被更改,包括 26 次插入 和 0 次删除
  1. 13 0
      README.en.md
  2. 13 0
      README.md

+ 13 - 0
README.en.md

@@ -83,6 +83,19 @@ INKOS_LLM_MODEL=                                   # Model name
 
 
 Project `.env` overrides global config. Skip it if no override needed.
 Project `.env` overrides global config. Skip it if no override needed.
 
 
+**Option 3: Multi-model routing (optional)**
+
+Assign different models to different agents — balance quality and cost:
+
+```bash
+# Writer uses Claude (stronger creative), Auditor uses GPT-4o (cheaper & fast)
+inkos config set-model writer claude-sonnet-4-20250514 --provider anthropic --base-url https://api.anthropic.com --api-key-env ANTHROPIC_API_KEY
+inkos config set-model auditor gpt-4o --provider openai
+inkos config show-models        # View current routing
+```
+
+Agents without explicit overrides fall back to the global model.
+
 ### Write Your First Book
 ### Write Your First Book
 
 
 ```bash
 ```bash

+ 13 - 0
README.md

@@ -83,6 +83,19 @@ INKOS_LLM_MODEL=                                   # 模型名
 
 
 项目 `.env` 会覆盖全局配置。不需要覆盖时可以不写。
 项目 `.env` 会覆盖全局配置。不需要覆盖时可以不写。
 
 
+**方式三:多模型路由(可选)**
+
+给不同 Agent 分配不同模型,按需平衡质量与成本:
+
+```bash
+# Writer 用 Claude(创意强),Auditor 用 GPT-4o(便宜快速)
+inkos config set-model writer claude-sonnet-4-20250514 --provider anthropic --base-url https://api.anthropic.com --api-key-env ANTHROPIC_API_KEY
+inkos config set-model auditor gpt-4o --provider openai
+inkos config show-models        # 查看当前路由
+```
+
+未单独配置的 Agent 自动使用全局模型。
+
 ### 写第一本书
 ### 写第一本书
 
 
 ```bash
 ```bash