Skip to content

Python: Bug: Python - Semantic Kernel Realtime isn't supporting the GA versions of Azure OpenAI realtime models #13267

@nourshaker-msft

Description

@nourshaker-msft

Describe the bug
When attempting to use any of the new GA models in Azure OpenAI for Semantic Kernel Realtime, you're faced with an error

To Reproduce
Steps to reproduce the behavior:

  1. Deploy a GA model from Azure OpenAI
  2. give any name that's not in this list ('gpt-4o-realtime-preview', 'gpt-4o-realtime-preview-2024-10-01', 'gpt-4o-realtime-preview-2024-12-17', 'gpt-4o-realtime-preview-2025-06-03', 'gpt-4o-mini-realtime-preview' or 'gpt-4o-mini-realtime-preview-2024-12-17')
  3. Run a code sample from https://learn.microsoft.com/en-us/semantic-kernel/concepts/ai-services/realtime?pivots=programming-language-python or https://github.com/Azure-Samples/AI-Gateway/blob/main/labs/realtime-mcp-agents/realtime-mcp-agents.ipynb
  4. See error

session.model Input should be 'gpt-4o-realtime-preview', 'gpt-4o-realtime-preview-2024-10-01', 'gpt-4o-realtime-preview-2024-12-17', 'gpt-4o-realtime-preview-2025-06-03', 'gpt-4o-mini-realtime-preview' or 'gpt-4o-mini-realtime-preview-2024-12-17' [type=literal_error, input_value='gpt-realtime', input_type=str] For further information visit https://errors.pydantic.dev/2.11/v/literal_error

Expected behavior
It should work as expected as it used to whilst we still had preview models

Additional context
Workaround, at deployment time, name the GA model as gpt-4o-realtime-preview

Platform

  • Language: Python
  • Source: semantic-kernelrealtime, semantic-kernel-1.37.0
  • AI model: gpt-realtime-mini, gpt-realtime
  • IDE: VS Code
  • OS: Linux - WSL

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpythonPull requests for the Python Semantic Kerneltriage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions