Skip to content

dashboard: rename Ollama endpoints to /api/llm, remove dead registry browse#67

Merged
AlienWalker1995 merged 1 commit into
mainfrom
chore/rename-ollama-endpoints-pr2
Jul 1, 2026
Merged

dashboard: rename Ollama endpoints to /api/llm, remove dead registry browse#67
AlienWalker1995 merged 1 commit into
mainfrom
chore/rename-ollama-endpoints-pr2

Conversation

@AlienWalker1995

Copy link
Copy Markdown
Owner

Supersedes #66 (auto-closed when its stacked base branch #65 was merged+deleted). Now targets main directly. 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-webui OLLAMA_BASE_URL=ENABLE_OLLAMA_API=false; drop n8n OLLAMA_HOST.
  • Docs: README "Ollama models" section + 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).
  • UI↔backend route cross-check clean; index.html kept at base CRLF so the diff is real edits (313 lines), not an EOL flip.

🤖 Generated with Claude Code

…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>
@AlienWalker1995 AlienWalker1995 merged commit 7b6c13c into main Jul 1, 2026
5 checks passed
@AlienWalker1995 AlienWalker1995 deleted the chore/rename-ollama-endpoints-pr2 branch July 1, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant