dashboard: rename Ollama endpoints to /api/llm, remove dead registry browse#67
Merged
Merged
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.
Supersedes #66 (auto-closed when its stacked base branch #65 was merged+deleted). Now targets
maindirectly. Content unchanged.What
The dashboard's
/api/ollama/*endpoints actually manage GGUF/llama.cpp models (misnamed). Rename to/api/llm/*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 dead/api/ollama/library+ helpers/config; rename_run_ollama_pull→_run_gguf_pull,_ollama_pull_status→_gguf_pull_status,_hf_url_to_ollama→_hf_url_to_repo. Behavior-preserving for the 6 live endpoints.index.html: retarget 5 fetch sites; remove the registry-browse dropdown (kept HF-repo pull input); rename Ollama UI labels/identifiers.tests: drop the library test; repoint the exception-handler test to/api/llm/models.docker-compose.yml: open-webuiOLLAMA_BASE_URL=→ENABLE_OLLAMA_API=false; drop n8nOLLAMA_HOST.component-dashboard-ui.md→/api/llm.With #65 merged, this leaves zero Ollama references repo-wide (except CHANGELOG history +
ENABLE_OLLAMA_API).Validation
pytest→ 394 passed (2 known local-only fails: hermes_socket/secrets_isolation).index.htmlkept at base CRLF so the diff is real edits (313 lines), not an EOL flip.🤖 Generated with Claude Code