Add reasoning support to OpenAIRealtimeLLMService for gpt-realtime-2

This commit is contained in:
Paul Kompfner
2026-05-12 13:53:43 -04:00
parent 007fa3a3a8
commit a52bdef32b
5 changed files with 316 additions and 1 deletions

View File

@@ -232,6 +232,20 @@ Remember, your responses should be short. Just one or two sentences, usually. Re
# [LLMUpdateSettingsFrame(settings=SessionProperties(tools=new_tools).model_dump())]
# )
# Reasoning effort can be changed at runtime too. Only
# reasoning-capable Realtime models (e.g. gpt-realtime-2) support this.
# await task.queue_frames(
# [
# LLMUpdateSettingsFrame(
# delta=OpenAIRealtimeLLMService.Settings(
# session_properties=SessionProperties(
# reasoning=Reasoning(effort="xhigh"),
# ),
# )
# )
# ]
# )
@transport.event_handler("on_client_disconnected")
async def on_client_disconnected(transport, client):
logger.info(f"Client disconnected")