docs(agents): fix the dsh private model route recipe (#389)

`dsh-llm-pi-ai` registers its built-in providers once, so a second instance
in the profile patch fails on mount with `provider "..." is already declared`.
Extend the base `llm-pi-ai` row instead.
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-06 14:10:54 +08:00
1 parent 28e0b156ce
commit 187577b2da
1 file changed
+7 -8
+7 -8
View File
@@ -41,19 +41,18 @@ near 300k tokens.
## Private and local model routes
Endpoints that must not enter this repository — LAN/self-hosted servers and staging gateways — do
not belong in the home layer. Declare them locally as a separate pi-ai instance in the profile
patch, which dsh does not deploy from here:
not belong in the home layer. Extend the base `llm-pi-ai` row from the profile patch instead:
```yaml
# ~/.dsh/profiles/<name>/cordis.patch.yml
- insert:
- id: llm-pi-ai-private
name: "@deepseek-ai/dsh-llm-pi-ai"
config:
providers: { ... }
- id: llm-pi-ai
name: "@deepseek-ai/dsh-llm-pi-ai"
config:
providers: { ... }
```
The private instance coexists with the shared one under its own id.
`dsh-llm-pi-ai` registers its built-in providers once, so mount only one instance — a second one
fails with `provider "..." is already declared`.
## Running it