-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
Describe the bug:
Running the enterprise-streaming-agent.ipynb example it is failed on the Build a Gradio UI section.
The agent and the UI is created successfully, but when you use the Gradio webpage UI to send a message to the agent this error happens:
_patch.py", line 2269, in create_stream
raise ValueError("Invalid combination of arguments provided.")
ValueError: Invalid combination of arguments provided.
Expected behavior
To have response from the agent stream back to the UI.
Platform
Windows 11, VSCODE
- azure-ai-projects 1.0.0b9
- azure-identity 1.21.0
- gradio 5.25.2
- ipykernel 6.29.5
- ipywidgets 8.1.6
- jupyter 1.1.1
- matplotlib 3.10.1
- pillow 11.2.1
- python-dotenv 1.1.0
- requests 2.32.3
- yfinance 0.2.55
Traceback
Traceback (most recent call last):
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\gradio\queueing.py", line 715, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\gradio\blocks.py", line 2136, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\gradio\blocks.py", line 1674, in call_function
prediction = await utils.async_iteration(iterator)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\gradio\utils.py", line 728, in async_iteration
return await anext(iterator)
^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\gradio\utils.py", line 722, in __anext__
return await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\anyio\_backends\_asyncio.py", line 967, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\gradio\utils.py", line 705, in run_sync_iterator_async
return next(iterator)
^^^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\gradio\utils.py", line 866, in gen_wrapper
response = next(iterator)
^^^^^^^^^^^^^^
File "C:\Users\userX\AppData\Local\Temp\ipykernel_31524\3145833794.py", line 194, in azure_enterprise_chat
with project_client.agents.create_stream(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\azure\core\tracing\decorator.py", line 119, in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\userX\AppData\Local\anaconda3\envs\ABC-DEMO\Lib\site-packages\azure\ai\projects\operations\_patch.py", line 2269, in create_stream
raise ValueError("Invalid combination of arguments provided.")
ValueError: Invalid combination of arguments provided.
Metadata
Metadata
Assignees
Labels
No labels