litellm - 💡(How to fix) Fix [Bug]: Gpt-1.5-audio ( OpenAI) [9 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#24212Fetched 2026-04-08 01:09:22
View on GitHub
Comments
9
Participants
3
Timeline
32
Reactions
0
Timeline (top)
commented ×9mentioned ×9subscribed ×9labeled ×3
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

GPT-1.5-audio is only usuable with litellmp using the beta api format. RealtimeError(message="Unknown parameter: 'session.type'.", type='invalid_request_error', code='unknown_parameter',

here is a usefull ink: https://developers.openai.com/api/docs/guides/realtime#beta-to-ga-migration

Steps to Reproduce

  1. try beta
  2. try GA

Relevant log output

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

V1.82.3.rc

Twitter / LinkedIn details

No response

extent analysis

Fix Plan

To resolve the Unknown parameter: 'session.type' error, we need to update the API request to use the General Availability (GA) format instead of the beta API format.

Code Changes

Here are the steps to update the code:

  • Remove the session.type parameter from the API request.
  • Update the API endpoint to use the GA format.

Example code snippet:

# Before (beta API format)
response = openai.ChatCompletion.create(
    model="gpt-1.5-audio",
    session_type="message",
    messages=[{"role": "user", "content": "Hello"}]
)

# After (GA format)
response = openai.ChatCompletion.create(
    model="gpt-1.5-audio",
    messages=[{"role": "user", "content": "Hello"}]
)

Verification

To verify that the fix worked, try sending a request to the API using the updated code snippet. If the request is successful, you should receive a response without the Unknown parameter: 'session.type' error.

Extra Tips

  • Make sure to check the OpenAI API documentation for the latest information on API endpoints and parameters.
  • If you're using a library or framework to interact with the OpenAI API, ensure that you're using the latest version that supports the GA format.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING