Spaces:
Sleeping
Sleeping
Commit ·
fc4bf84
1
Parent(s): 1b6c234
Remove max_turns parameter from run_streamed function in main.py to simplify streamed response handling.
Browse files
main.py
CHANGED
|
@@ -57,7 +57,7 @@ async def agent_fastapi(input):
|
|
| 57 |
|
| 58 |
|
| 59 |
async def stream_response(input):
|
| 60 |
-
result = Runner.run_streamed(assistant_agent, input=input
|
| 61 |
async for events in result.stream_events():
|
| 62 |
if events.type == "raw_response_event" and isinstance(
|
| 63 |
events.data, ResponseTextDeltaEvent
|
|
|
|
| 57 |
|
| 58 |
|
| 59 |
async def stream_response(input):
|
| 60 |
+
result = Runner.run_streamed(assistant_agent, input=input)
|
| 61 |
async for events in result.stream_events():
|
| 62 |
if events.type == "raw_response_event" and isinstance(
|
| 63 |
events.data, ResponseTextDeltaEvent
|