Add header to ChatCompletions request for dsh
mc-lhz/dsh-add-headers-to-completions · tools
Adding a header to dsh's ChatCompletions request can be used to access OpenCode's free v4-flash, hy3 and other models.
★ 4GitHub stars
0Forks
2026-08-16Last updated
JavaScriptLanguage
—License
Key features
- Inject custom HTTP request headers into large model requests, such as User-Agent, x-company, x-model-trace, etc.
- Access opencode zen free model1.
- Supports global, per-provider, and per-model injection
- Create a new custom provider
Requirements
- The models layer (by provider/model) only takes effect in the fetch layer channel
- The schema of llm-pi-ai only has provider-level headers, and model-level headers cannot be online through the SDK channel.
Install command
dsh plugin --profile web add github:mc-lhz/dsh-add-headers-to-completions