Skip to content

Azure OpenAI ModelCatalog is not wired correctly #1116

@TimoBakx

Description

@TimoBakx

While using the Azure OpenAI platform and a GTP model (like gtp-5-mini), the following error occurs:

No ModelClient registered for model "Symfony\AI\Platform\Bridge\OpenAi\Gpt" with given input.

This seems to happen due to the ModelCatalog of OpenAI being wired to the Azure platform factory, instead of the Azure/OpenAI ModelCatalog.

Used configuration:

ai:
    platform:
        azure:
            my_azure:
                base_url: '%ai.connector.azure_openai.base_uri%'
                deployment: 'gpt-5-mini'
                api_key: '%ai.connector.azure_openai.api_key%'
                api_version: '%ai.connector.azure_openai.api_version%'

    agent:
        default:
            platform: 'ai.platform.azure.my_azure'
            model:
                name: 'gpt-5-mini'
                options:
                    temperature: 1.0
                    top_p: 1.0
                    max_completion_tokens: 100000
                    stream: true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions