feat(opencode): add Open WebUI provider#18306
feat(opencode): add Open WebUI provider#18306SamirMoustafa wants to merge 13 commits intoanomalyco:devfrom
Conversation
…implementing Bun ZlibError workarounds.
…ecompression of web chunks
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate Found:
The current PR (#18306) appears to be an updated or refactored version of the Open WebUI provider feature originally introduced in PR #14341. The description acknowledges this relationship, so these two PRs are related but the current one seems to be a successor/improvement to the earlier work. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Open WebUI + Ollama (local smoke test)Download docker-compose.yml docker compose up -d
docker compose exec ollama ollama pull qwen2.5:0.5bOpen http://localhost:3001 → admin signup → Settings → Account → API keys → create a key. // Optional
export OPEN_WEBUI_BASE_URL=http://localhost:3001
export OPEN_WEBUI_API_KEY=…Stop: Screen.Recording.2026-03-20.at.2.15.07.AM.mov |
Issue for this PR
Closes #13537
Builds on feat: add provider openWebUI #14341 (thanks @PapeThePope).
Type of change
What does this PR do?
Adds Open WebUI as a provider (OpenAI-compatible API): login/connection in CLI and TUI, listing and models, handling for gzip/chunked streams, docs, and tests.
Files:
packages/opencode/src/cli/cmd/providers.ts,packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx,packages/opencode/src/config/paths.ts,packages/opencode/src/provider/models.ts,packages/opencode/src/provider/provider.ts,packages/opencode/src/provider/transform.ts,packages/opencode/src/server/routes/provider.ts,packages/opencode/test/provider/transform.test.ts,packages/web/src/content/docs/providers.mdx,bun.lock.How did you verify your code works?
bun typecheckinpackages/opencodeScreenshots / recordings
N/A (CLI/TUI text flows).
Checklist