diff options
| author | Adam Malczewski <[email protected]> | 2026-06-21 12:09:09 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-21 12:09:09 +0900 |
| commit | d23de3254374d4d63c8e15c6ab9311c3c6f4da5b (patch) | |
| tree | 6105e3a8639555b2c925d412a567bcb8caa4075f /README.md | |
| parent | ba47df37f0c89bff4f0c3dd7d0bc2ef6c8062b92 (diff) | |
| download | dispatch-d23de3254374d4d63c8e15c6ab9311c3c6f4da5b.tar.gz dispatch-d23de3254374d4d63c8e15c6ab9311c3c6f4da5b.zip | |
feat(provider-umans): Umans AI Coding Plan provider + openai-stream lib
Extract a generic @dispatch/openai-stream library from provider-openai-compat
(convert-messages, convert-tools, parse-sse, listModels, stream, provider),
parameterizing createOpenAICompatProvider with uid=1000(tradam) gid=1000(tradam) groups=1000(tradam),966(docker),968(ollama),998(wheel) + hook.
Refactor provider-openai-compat to import from the lib (byte-identical behavior).
New @dispatch/provider-umans extension wraps the Umans OpenAI-compatible backend
(https://api.code.umans.ai/v1). Self-contained: reads UMANS_API_KEY from env
directly (no auth-apikey dep). transformBody maps reasoningEffort →
reasoning_effort (capping xhigh/max → high). Dynamic listModels via GET /v1/models.
host-bin: registered provider-umans in CORE_EXTENSIONS + umans credential
(gated on UMANS_API_KEY — the credential is the model-catalog index).
Verified: tsc EXIT 0, 1059 vitest, biome clean (293 files). Boot smoke:
umans models appear in GET /models (7 models live).
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -35,6 +35,11 @@ bun install DISPATCH_MODEL=deepseek-v4-flash # default model when a request omits one BACKEND_PORT=24203 # port the HTTP server listens on FRONTEND_PORT=24204 # reserved for the future web UI + + # Optional — Umans AI Coding Plan provider (https://code.umans.ai) + UMANS_API_KEY=sk-... # if set, the "umans" provider is registered + # UMANS_BASE_URL=https://api.code.umans.ai/v1 # override the default base URL + # UMANS_MODEL=umans-coder # default model (umans-coder|umans-kimi-k2.7|umans-glm-5.2|umans-flash) ``` Bun auto-loads `.env`. (If your shell also needs the vars: `set -a; source .env; set +a`.) |
