File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ def run_app():
2929 "qwen-turbo" ,
3030 api_key = os .getenv ("DASHSCOPE_API_KEY" ),
3131 enable_thinking = True ,
32+ stream = True ,
3233 ),
3334 agent_config = {
3435 "sys_prompt" : "You're a helpful assistant named Friday." ,
@@ -149,7 +150,7 @@ async def test_multi_turn_stream_async(start_app):
149150 Ensures that the agent remembers the user's name from a previous turn.
150151 """
151152 session_id = "123456"
152- user_id = "test_user"
153+
153154 url = f"http://localhost:{ PORT } /process"
154155
155156 async with aiohttp .ClientSession () as session :
@@ -160,8 +161,7 @@ async def test_multi_turn_stream_async(start_app):
160161 "content" : [{"type" : "text" , "text" : "My name is Alice." }],
161162 },
162163 ],
163- "session" : session_id ,
164- "user_id" : user_id ,
164+ "session_id" : session_id ,
165165 }
166166 async with session .post (url , json = payload1 ) as resp :
167167 assert resp .status == 200
@@ -185,7 +185,7 @@ async def test_multi_turn_stream_async(start_app):
185185 "content" : [{"type" : "text" , "text" : "What is my name?" }],
186186 },
187187 ],
188- "session " : session_id ,
188+ "session_id " : session_id ,
189189 }
190190
191191 async with aiohttp .ClientSession () as session :
You can’t perform that action at this time.
0 commit comments