You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Traceback (most recent call last):
| File "/home/galaxygliese/.local/lib/python3.10/site-packages/starlette/responses.py", line 260, in wrap
| await func()
| File "/home/galaxygliese/.local/lib/python3.10/site-packages/starlette/responses.py", line 249, in stream_response
| async for chunk in self.body_iterator:
| File "/home/galaxygliese/.local/lib/python3.10/site-packages/agno/playground/async_router.py", line 110, in chat_response_streamer
| async for run_response_chunk in run_response:
| File "/home/galaxygliese/.local/lib/python3.10/site-packages/agno/agent/agent.py", line 968, in _arun
| async for model_response_chunk in model_response_stream: # type: ignore
| TypeError: 'async for' requires an object with __aiter__ method, got coroutine
Environment
OS: Ubuntu 22
Browser (if relevant): Chrome
Agno Version: agno==1.0.1
External Dependency Versions: mistralai==1.5.0
Additional Environment Details: Python 3.10
Possible Solutions (optional)
I think the error may be in async client. The openai version client is shown below:
from openai import AsyncOpenAI as AsyncOpenAIClient
from openai import OpenAI
from agno.models.openai import OpenAIChat
def get_openai_model()-> OpenAIChat :
API_KEY = os.environ.get("OPENAI_API_KEY")
return OpenAIChat(
id="gpt-4o-mini",
client=OpenAI(
api_key=API_KEY,
),
async_client=AsyncOpenAIClient(
api_key=API_KEY,
),
temperature=0.0,
)
Additional Context
Add any other context or details about the problem here.
The text was updated successfully, but these errors were encountered:
Hey @galaxygliese! Mistral right now doesn't support async capabilities which is causing this issue. Are you by any chance trying to use the playground with Mistral model?
@galaxygliese we now support async with Mistral in our latest release. Please update agno using pip install -U agno and your code should now start working
Hello, I got the error while I was using Mistral AI client in
app.agno.com
.Description
Running the Mistral client as is works fine, but running ti from
app.agno.com
is causing the error.I tried OpenAI client version, it worked.
Steps to Reproduce
List the steps needed to encounter this bug or issue.
Agent Configuration (if applicable)
Mistral AI model code:
Agent code:
Actual Behavior
TypeError occured.
Screenshots or Logs (if applicable)
Environment
agno==1.0.1
mistralai==1.5.0
Possible Solutions (optional)
I think the error may be in async client. The openai version client is shown below:
Additional Context
Add any other context or details about the problem here.
The text was updated successfully, but these errors were encountered: