-
Notifications
You must be signed in to change notification settings - Fork 270
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
Model gpt-4o-realtime-preview-2024-10-01
should not be hardcoded
#89
Comments
+1 this is very strange to discover and appreciate the PR! |
+1 totally agree, we should have possibility to change the model. |
+1 agree! |
+1 !! |
❤A new model gpt-4o-realtime-preview-2024-12-17 has been released with lower price.❤ |
As a workaround, you can call export const DEFAULT_REALTIME_MODEL = "gpt-4o-realtime-preview-2024-12-17";
// ...
await client.realtime.connect({ model: DEFAULT_REALTIME_MODEL });
await client.updateSession(); The |
Do you maybe have an idea why function calling does not work when I define model like this instead of using client.connect() |
The code I suggested needs to be run on the relay server, not the client. Yes, but it's |
Not sure. I use function calling in my application and noticed no difference when I swapped models. The realtime models' tool-calling abilities have seemed far more sensitive to temperature than I've expected. If you're not already, maybe try using the default value for temperature. |
I did more digging around. The relay server issue is coming from this. If you're using a relay server you definitely need the fix below Just fork the repo and add this fix and link it back to your project. That's how I did it. Check devtools of relay server ![]() |
It really is this easy: #89 (comment) You just have to make those changes in the right place (i.e., where you're actually connecting to OpenAI :) |
Hey guys, we are looking forward to use the latest model for realtime I do see a PR already raised so, when can we see that PR coming through to repo? PR #52 |
@jjmlovesgit > please see: #92 #92 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. did it actually work for you? Becuase it didnt work for me! I hardcoded the 4o mini model here - if (!model) { BUT STILL it reverts to the default 4o model (the old one from 24/10/01) as seen on the openai dashboard. |
This is a nasty bug ... I thought I used the mini, but it did not.... cost me 80$ in one day just showing demo lol... OpenAI, fix it asap, please. |
@devpras22 |
Pr 103 lets you :) |
Issue:
gpt-4o-realtime-preview-2024-10-01
gpt-4o-realtime-preview-2024-12-17
has been released with lower price.gpt-4o-realtime-preview
is also availableExpected:
The text was updated successfully, but these errors were encountered: