Просмотр исходного кода

docs(skill): add multi-model routing section and set-model/show-models to command table

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Ma 7 месяцев назад
Родитель
Сommit
7e90ec512c
2 измененных файлов с 16 добавлено и 5 удалено
  1. 5 5
      pnpm-lock.yaml
  2. 11 0
      skills/SKILL.md

+ 5 - 5
pnpm-lock.yaml

@@ -11,8 +11,8 @@ importers:
   packages/cli:
     dependencies:
       '@actalk/inkos-core':
-        specifier: 0.4.6
-        version: 0.4.6
+        specifier: 0.4.8
+        version: 0.4.8
       commander:
         specifier: ^13.0.0
         version: 13.1.0
@@ -63,8 +63,8 @@ importers:
 
 packages:
 
-  '@actalk/inkos-core@0.4.6':
-    resolution: {integrity: sha512-poCvxlM2kcR+yhH2XHyP7Q7bVtNHSyrD1kEmrrRBRBS4FEPcwY1k39JzwdXpDzCeC99b0rMR0G3lDrRfNLLdBQ==}
+  '@actalk/inkos-core@0.4.8':
+    resolution: {integrity: sha512-8DeR/7BOfqu6A4cdrmN0MNStVc1/4VXA7mxZ6eyFIlDx3a6H322UzFa/02KSwnKzuSdYPA2lwzo4D3F2heJh3A==}
 
   '@anthropic-ai/sdk@0.78.0':
     resolution: {integrity: sha512-PzQhR715td/m1UaaN5hHXjYB8Gl2lF9UVhrrGrZeysiF6Rb74Wc9GCB8hzLdzmQtBd1qe89F9OptgB9Za1Ib5w==}
@@ -967,7 +967,7 @@ packages:
 
 snapshots:
 
-  '@actalk/inkos-core@0.4.6':
+  '@actalk/inkos-core@0.4.8':
     dependencies:
       '@anthropic-ai/sdk': 0.78.0(zod@3.25.76)
       js-yaml: 4.1.1

+ 11 - 0
skills/SKILL.md

@@ -35,6 +35,15 @@ inkos config set-global --provider openai --base-url https://api.openai.com/v1 -
 # inkos config set-global --provider custom --base-url https://your-proxy.com/v1 --api-key sk-xxx --model gpt-4o
 ```
 
+### Multi-Model Routing (Optional)
+```bash
+# Assign different models to different agents — balance quality and cost
+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
+```
+Agents without explicit overrides fall back to the global model.
+
 ### View System Status
 ```bash
 # Check installation and configuration
@@ -302,6 +311,8 @@ inkos genre copy xuanhuan --name "dark-xuanhuan" --rules "darker tone, more viol
 | `inkos analytics` / `inkos stats` | View book statistics | Word count, audit rates, token usage |
 | `inkos radar scan` | Platform trend analysis | Informs new book ideas |
 | `inkos config set-global` | Configure LLM provider | OpenAI/Anthropic/custom (any OpenAI-compatible) |
+| `inkos config set-model <agent> <model>` | Set model override for a specific agent | `--provider`, `--base-url`, `--api-key-env` for multi-provider routing |
+| `inkos config show-models` | Show current model routing | View per-agent model assignments |
 | `inkos doctor` | Diagnose issues | Check installation |
 | `inkos update` | Update to latest version | Self-update |
 | `inkos up/down` | Daemon mode | Background processing. Logs to `inkos.log` (JSON Lines). `-q` for quiet mode |