We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c7905 commit 5a9d40fCopy full SHA for 5a9d40f
routers/chat.py
@@ -116,7 +116,6 @@ async def handle_assistant_stream(
116
stream_name=f"textDelta{step_id}"
117
)
118
119
- time.sleep(0.25) # Give the client time to render the message
120
121
if isinstance(event, ThreadMessageDelta) and event.data.delta.content:
122
content: MessageContentDelta = event.data.delta.content[0]
@@ -137,7 +136,6 @@ async def handle_assistant_stream(
137
136
stream_name=f'toolDelta{step_id}'
138
139
140
141
142
if isinstance(event, ThreadRunStepDelta) and event.data.delta.step_details and event.data.delta.step_details.type == "tool_calls":
143
tool_calls = event.data.delta.step_details.tool_calls
0 commit comments