freddyaboulton HF staff commited on
Commit
25114f9
1 Parent(s): e9e89e1

use cheaper model

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ class OpenAIHandler(StreamHandler):
67
  """Connect to realtime API. Run forever in separate thread to keep connection open."""
68
  self.client = openai.Client(api_key=api_key)
69
  with self.client.beta.realtime.connect(
70
- model="gpt-4o-realtime-preview-2024-10-01"
71
  ) as conn:
72
  conn.session.update(session={"turn_detection": {"type": "server_vad"}})
73
  self.connection = conn
 
67
  """Connect to realtime API. Run forever in separate thread to keep connection open."""
68
  self.client = openai.Client(api_key=api_key)
69
  with self.client.beta.realtime.connect(
70
+ model="gpt-4o-mini-realtime-preview-2024-12-17"
71
  ) as conn:
72
  conn.session.update(session={"turn_detection": {"type": "server_vad"}})
73
  self.connection = conn