From 4c4bae2db6628561dbad0a81e3d559368e7601aa Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Wed, 13 Aug 2025 11:04:48 -0400 Subject: [PATCH] Remove unnessecary messages from 19 and 19b examples --- examples/foundational/19-openai-realtime-beta.py | 11 ----------- .../foundational/19b-openai-realtime-beta-text.py | 10 ---------- 2 files changed, 21 deletions(-) diff --git a/examples/foundational/19-openai-realtime-beta.py b/examples/foundational/19-openai-realtime-beta.py index 655439d7c..a9aa27c45 100644 --- a/examples/foundational/19-openai-realtime-beta.py +++ b/examples/foundational/19-openai-realtime-beta.py @@ -113,7 +113,6 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): session_properties = SessionProperties( input_audio_transcription=InputAudioTranscription(), - modalities=["text", "audio"], # Set openai TurnDetection parameters. Not setting this at all will turn it # on by default turn_detection=SemanticTurnDetection(), @@ -159,16 +158,6 @@ Remember, your responses should be short. Just one or two sentences, usually.""" # openai WebSocket API can understand. context = OpenAILLMContext( [{"role": "user", "content": "Say hello!"}], - # [{"role": "user", "content": [{"type": "text", "text": "Say hello!"}]}], - # [ - # { - # "role": "user", - # "content": [ - # {"type": "text", "text": "Say"}, - # {"type": "text", "text": "yo what's up!"}, - # ], - # } - # ], tools, ) diff --git a/examples/foundational/19b-openai-realtime-beta-text.py b/examples/foundational/19b-openai-realtime-beta-text.py index e37be8078..04ad42fc8 100644 --- a/examples/foundational/19b-openai-realtime-beta-text.py +++ b/examples/foundational/19b-openai-realtime-beta-text.py @@ -165,16 +165,6 @@ Remember, your responses should be short. Just one or two sentences, usually.""" # openai WebSocket API can understand. context = OpenAILLMContext( [{"role": "user", "content": "Say hello!"}], - # [{"role": "user", "content": [{"type": "text", "text": "Say hello!"}]}], - # [ - # { - # "role": "user", - # "content": [ - # {"type": "text", "text": "Say"}, - # {"type": "text", "text": "yo what's up!"}, - # ], - # } - # ], tools, )