Skip to content

Commit 88a6119

Browse files
Remove errors
1 parent 899c5bb commit 88a6119

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

examples/poet_chat/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ async def _openai_recv():
4242
elif event.data.type == "turn_ended":
4343
print(f"Agent said:\n{msg}\n")
4444
msg = ""
45-
elif event.data.type == "error":
46-
print(event.data.error)
47-
raise RuntimeError("Unexpected error from OpenAI API!")
4845
elif event.data.type == "exception":
4946
raise event.data.exception
5047
elif event.data.type == "raw_server_event":

examples/poet_chat/poet_chat/agent.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
"input_audio_format": "pcm16",
1313
"output_audio_format": "pcm16",
1414
"turn_detection": {
15-
"interrupt_response": True,
16-
"create_response": True,
1715
"type": "semantic_vad",
1816
},
1917
}

0 commit comments

Comments
 (0)