feat(opencode): add Open WebUI provider#18306
feat(opencode): add Open WebUI provider#18306SamirMoustafa wants to merge 1 commit intoanomalyco:devfrom
Conversation
|
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 |
|
Hi @adamdotdevin and @alexyaroshuk,
Besides the commented Dockerfile, I have tested over a version of Open WebUI with these providers ( |
|
Great work on this! Quick question — is there a way to configure |
@MikeWang0316tw Use either {"$schema": "https://opencode.ai/config.json",
"provider": {
"openwebui": {
"options": {
"baseURL": "http://localhost:3001"
},
"models": {
"qwen3.5:9b": {
"limit": {
"context": 8192,
"output": 1024
},
"options": {
"num_ctx": 8192,
"num_predict": 512,
"temperature": 0.2,
"top_p": 0.9,
"repeat_penalty": 1.05}}}}}}In this example: A similar manual custom provider config flow in OpenCode is llama.cpp. |
OpenAI-compatible API: model discovery, CLI/TUI connect, stream decode, docs, and tests. Closes anomalyco#13537
418cf39 to
552323b
Compare
|
When will this merge? I need this feature ^.^ |
|
@SamirMoustafa You may need to resolve the conflict |
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.
How did you verify your code works?
bun typecheckinpackages/opencodeScreenshots / recordings
N/A (CLI/TUI text flows).
Checklist