We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception crewai Error instantiating LLM from environment/fallback: TypeError: LLM.init() got an unexpected keyword argument 'api_base'
The application should generate the a report.md as output from Azure AI.
n/a
Windows 11
3.12
0.98.0
0.32.0
Venv
change the mechanism of the sdk to consider set the api base in according with AZURE_API_BASE attribute (azure_openai.py)
Workaround to solve it
for entry in ENV_VARS.get("azure", []): if entry.get("key_name") == "AZURE_API_BASE": entry["BASE_URL"] = entry.pop("key_name") # Rename the key
or
chave the env file to consider BASE_URL insted of AZURE_API_BASE
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Exception
crewai Error instantiating LLM from environment/fallback: TypeError: LLM.init() got an unexpected keyword argument 'api_base'
Steps to Reproduce
Expected behavior
The application should generate the a report.md as output from Azure AI.
Screenshots/Code snippets
n/a
Operating System
Windows 11
Python Version
3.12
crewAI Version
0.98.0
crewAI Tools Version
0.32.0
Virtual Environment
Venv
Evidence
Possible Solution
change the mechanism of the sdk to consider set the api base in according with AZURE_API_BASE attribute (azure_openai.py)
Additional context
Workaround to solve it
Override the key name dynamically
for entry in ENV_VARS.get("azure", []):
if entry.get("key_name") == "AZURE_API_BASE":
entry["BASE_URL"] = entry.pop("key_name") # Rename the key
or
chave the env file to consider BASE_URL insted of AZURE_API_BASE
The text was updated successfully, but these errors were encountered: