Skip to content

[AI Bundle][Platform] Allow a custom model catalog on the Ollama platform#2173

Draft
chr-hertel wants to merge 2 commits into
symfony:mainfrom
chr-hertel:feature/ollama-model-catalog-override
Draft

[AI Bundle][Platform] Allow a custom model catalog on the Ollama platform#2173
chr-hertel wants to merge 2 commits into
symfony:mainfrom
chr-hertel:feature/ollama-model-catalog-override

Conversation

@chr-hertel

Copy link
Copy Markdown
Member
Q A
Bug fix? no
New feature? yes
Docs? yes
Issues -
License MIT

Note

Stacked on #2172 — please review/merge that first. This PR's own change is the last commit (the Ollama support); the diff shows #2172 underneath until it merges.

Ollama\Factory::createProvider() and createPlatform() gain an optional $modelCatalog parameter (after $httpClient, matching the other bridge factories), defaulting to the runtime API-based ModelCatalog. The bundle's ollama platform now accepts a model_catalog override too, so it is no longer an exception — handy for wrapping the API catalog in CachedModelCatalog. Only elevenlabs remains.

The new parameter shifts later positional arguments by one; all in-repo callers already use named args, and UPGRADE.md documents the change.

…latform

The model_catalog configuration key, previously honored only by the generic,
openresponses, and bedrock platforms, now works on every platform that ships a
catalog (openai, anthropic, gemini, mistral, ...). A shared resolveModelCatalog()
helper applies the override consistently, and each platform config gains the
model_catalog node. ollama and elevenlabs build their catalog at runtime and
remain the exceptions.
…form

Adds an optional $modelCatalog parameter to Ollama\Factory (after $httpClient,
matching the other bridge factories), defaulting to the runtime API catalog.
The bundle's ollama platform now accepts a model_catalog override, so it is no
longer an exception; elevenlabs remains the only one.
@chr-hertel chr-hertel requested a review from OskarStark as a code owner June 13, 2026 18:39
@carsonbot carsonbot added AI Bundle Issues & PRs about the AI integration bundle Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review labels Jun 13, 2026
@carsonbot carsonbot changed the title [Platform][AI Bundle] Allow a custom model catalog on the Ollama platform [AI Bundle][Platform] Allow a custom model catalog on the Ollama platform Jun 13, 2026
@chr-hertel chr-hertel marked this pull request as draft June 13, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Bundle Issues & PRs about the AI integration bundle Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants