Skip to content

fix(catalog): enrich Ollama models with capabilities from /api/show - #106

Merged
Patel230 merged 1 commit into
mainfrom
fix/ollama-capability-metadata
Aug 11, 2026
Merged

fix(catalog): enrich Ollama models with capabilities from /api/show#106
Patel230 merged 1 commit into
mainfrom
fix/ollama-capability-metadata

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Ollama's /api/tags omits capability metadata, so models like deepseek-r1:7b were rejected by the capability gate (engine: model does not satisfy requested capabilities).

  • FetchOllama now reads details.context_length from /api/tags and per-model best-effort POST /api/show.
  • Maps tools/function_calling -> "tools", thinking -> "thinking:enabled", vision -> "vision"; context length from details.context_length or model_info.*.context_length.
  • Falls back to tag-only entry when /api/show is unavailable (never fails the whole fetch).
  • Tests: enrichment mapping + fallback path.

@Patel230
Patel230 merged commit 68fb122 into main Aug 11, 2026
16 checks passed
@Patel230
Patel230 deleted the fix/ollama-capability-metadata branch August 11, 2026 03:08
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