-
Notifications
You must be signed in to change notification settings - Fork 235
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 :) |
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: