Skip to content

[AI Bundle] Support model_catalog override on every catalog-bearing platform#2172

Draft
chr-hertel wants to merge 1 commit into
symfony:mainfrom
chr-hertel:feature/bundle-model-catalog-override
Draft

[AI Bundle] Support model_catalog override on every catalog-bearing platform#2172
chr-hertel wants to merge 1 commit into
symfony:mainfrom
chr-hertel:feature/bundle-model-catalog-override

Conversation

@chr-hertel

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

The model_catalog configuration key — which replaces a platform's bundled catalog with a custom ModelCatalogInterface service — was only honored by the generic, openresponses, and bedrock platforms. First-class bridges (openai, anthropic, gemini, mistral, ...) silently ignored it.

This wires it up consistently via a shared resolveModelCatalog() helper, and adds the model_catalog node to every platform config that ships a catalog.

ai:
    platform:
        anthropic:
            api_key: "%env(ANTHROPIC_API_KEY)%"
            model_catalog: "app.model_catalog.anthropic" # any ModelCatalogInterface service

ollama and elevenlabs build their catalog from the API at runtime and remain the exceptions (the Ollama one is lifted in a follow-up).

…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.
@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 Status: Needs Review labels 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 Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants