Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Realtime Model Selection #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

AnasMations
Copy link

This PR introduces the ability to select a custom OpenAI realtime model in the RealtimeClient. Users can now specify the desired model for more flexibility and tailored API usage.

Changes:

  • Added support for passing a custom model name to RealtimeClient through the updateSession function

Let me know if there are any further changes or enhancements needed!

@jjmlovesgit
Copy link

An excellent and most valuable feature -- Recognition and support to Anas for this work!

@scottfits
Copy link

@khorwood-openai or @jhills20 - would you mind taking a look at this?

@mrmuke
Copy link

mrmuke commented Jan 13, 2025

+1

Comment on lines +225 to +229
if (!model) {
this.realtimeModel = 'gpt-4o-realtime-preview-2024-10-01';
} else {
this.realtimeModel = model;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if I'm not wrong, it can be done like this? this.realtimeModel = model || 'gpt-4o-realtime-preview-2024-10-01';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants