Open Tlaloc-Es opened 2 months ago
@Tlaloc-Es could you share the code?
The code is this
from openai import AzureOpenai # Load AzureOpenAi
Agent(....llm=AzureOpenAI(...)) # Instante the CrewAI Agent with llm as AzureOpenAI
I can instantate AzureOpenAI outsite anyway.
Regards.
@Tlaloc-Es did you get answer, i'm facing solve problem.
`
azure_llm = AzureOpenAI( azure_endpoint=os.getenv('AZURE_OPENAI_ENDPOINT'), api_key=os.getenv('AZURE_OPENAI_KEY'), api_version="2024-02-01" )
blog_researcher = Agent(
description='xxx',
verbose=True,
memory=True,
backstory=""" s""",
allow_delegation=True,
tools=[yt_tool],
llm=azure_llm
)
`
I'm getting error of AttributeError: 'AzureOpenAI' object has no attribute 'bind'
@jesusEstaba @jesusEstaba pls help us in this.
Maybe azure openai does not support function calling yet?
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Hello I was trying crewai wiht a AzureOpenAI, for a job project and I get the following error
The code that shows the error is the following:
How can I solve it?
Thanks