dashboard: rename Ollama endpoints to /api/llm, remove dead registry browse (PR2)#66
Closed
AlienWalker1995 wants to merge 1 commit into
Closed
Conversation
…browse
The dashboard's /api/ollama/* endpoints were actually managing GGUF/llama.cpp
models (misnamed). Rename them to a clean /api/llm/* namespace and remove the
one genuinely-dead piece (the Ollama community-registry browse).
- app.py: /api/ollama/{models,delete,unload,pull,pull/status,ps} -> /api/llm/*;
delete /api/ollama/library + _fetch_ollama_library + library config vars;
rename _run_ollama_pull->_run_gguf_pull, _ollama_pull_status->_gguf_pull_status,
_hf_url_to_ollama->_hf_url_to_repo; reword user-facing strings off Ollama
- index.html: retarget fetches to /api/llm/*, remove the registry-browse dropdown
(kept pull-by-HF-repo input), rename all Ollama UI labels/identifiers
- tests: drop the library test; repoint the global-exception-handler test to
/api/llm/models via a patched _scan_gguf_models
- docker-compose.yml: open-webui OLLAMA_BASE_URL= -> ENABLE_OLLAMA_API=false;
drop n8n OLLAMA_HOST (pointed at the LiteLLM gateway, which is not an Ollama API)
- README "Ollama models" section + component-dashboard-ui.md updated to /api/llm
Behavior-preserving for the 6 live endpoints. pytest: 394 passed (2 pre-existing
local-only failures unrelated). Stacked on the PR1 doc/script scrub.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #65
Base is the PR1 branch (
chore/remove-ollama-refs-pr1), so this shows only the delta. Merge #65 first; GitHub will retarget this tomain. Together they leave zero Ollama references in the repo (exceptCHANGELOG.mdhistory and Open WebUI'sENABLE_OLLAMA_API=falseoff-switch).What
The dashboard's
/api/ollama/*endpoints were actually managing GGUF/llama.cpp models (misnamed). This renames them to a clean/api/llm/*namespace and removes the one genuinely-dead piece.dashboard/app.py:/api/ollama/{models,delete,unload,pull,pull/status,ps}→/api/llm/*; delete the dead/api/ollama/library+_fetch_ollama_library+ registry-library config vars; rename_run_ollama_pull→_run_gguf_pull,_ollama_pull_status→_gguf_pull_status,_hf_url_to_ollama→_hf_url_to_repo; reword user-facing strings off Ollama. Behavior-preserving for the 6 live endpoints.dashboard/static/index.html: retarget the 5 UIfetchsites; remove the "browse Ollama registry" dropdown (kept pull-by-Hugging-Face-repo input); rename all Ollama UI labels/identifiers. (/api/llm/*chosen because/api/models/*is already ComfyUI's.)tests: drop the library test; repoint the global-exception-handler test to/api/llm/modelsvia a patched_scan_gguf_models.docker-compose.yml: open-webuiOLLAMA_BASE_URL=→ENABLE_OLLAMA_API=false(explicit disable); drop n8nOLLAMA_HOST(it pointed at the LiteLLM gateway, which doesn't speak Ollama's API; n8n's real path isOPENAI_API_BASE_URL).component-dashboard-ui.mdupdated to/api/llm.Validation
python -m pytest tests/→ 394 passed (the 2 failures are the known local-onlyhermes_socket/secrets_isolationtests — they pass/skip in CI)./api/llm/unloadhas no UI caller, matching the pre-existing state).git grep -in ollamaacross the combined stack → onlyCHANGELOG.md+ENABLE_OLLAMA_API.index.htmlre-normalized to its base CRLF so the diff is real edits only (313 lines), not a whole-file EOL flip.🤖 Generated with Claude Code