litellm icon indicating copy to clipboard operation
litellm copied to clipboard

[Bug]: Gemini `gemini-2.5-flash-preview-native-audio-dialog` does not work with /realtime

Open AyrennC opened this issue 4 months ago • 5 comments

What happened?

While providing gemini/gemini-2.5-flash-preview-native-audio-dialog as custom model name, the /realtime endpoint returns error "Unsupported model: gemini-2.5-flash-preview-native-audio-dialog" even though it should be supported and share the same format as other gemini realtime models

Relevant log output

Unsupported model: gemini-2.5-flash-preview-native-audio-dialog
stack trace: Traceback (most recent call last):
  File "/app/litellm/main.py", line 5556, in ahealth_check
    _response = await mode_handlers[mode]()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/litellm/realtime_api/main.py", line 179, in _realtime_health_check
    raise ValueError(f"Unsupported model: {model}")
ValueError: Unsupported model: gemini-2.5-flash-preview-native-audio-dialog

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.74.15

Twitter / LinkedIn details

No response

AyrennC avatar Aug 11 '25 08:08 AyrennC

@AyrennC can we see the full stacktrace please?

krrishdholakia avatar Aug 12 '25 01:08 krrishdholakia

@krrishdholakia , here is the log details

Unsupported model: gemini-2.5-flash-preview-native-audio-dialog
stack trace: Traceback (most recent call last):
  File "/app/litellm/main.py", line 5556, in ahealth_check
    _response = await mode_handlers[mode]()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/litellm/realtime_api/main.py", line 179, in _realtime_health_check
    raise ValueError(f"Unsupported model: {model}")
ValueError: Unsupported model: gemini-2.5-flash-preview-native-audio-dialog

AyrennC avatar Aug 12 '25 01:08 AyrennC

Bumping this thread as I'm running into a similar issue!

taelid avatar Aug 23 '25 01:08 taelid

ack

krrishdholakia avatar Aug 23 '25 02:08 krrishdholakia

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Nov 22 '25 00:11 github-actions[bot]