-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
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
[BUG]litellmGemini API not working ? #1393
Comments
I also cannot use Gemini with VertexAI in a crew, but it works using the LiteLLM |
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. |
any updates? |
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. |
This issue was closed because it has been stalled for 5 days with no activity. |
Description
Crewai generating error when using Gemini pro api, while it's working fine with other openai models.
Steps to Reproduce
add the script to test.py and run it with poetry run python test.py
Expected behavior
it should access gemini api to generate content
Screenshots/Code snippets
import os
from langchain_google_genai import ChatGoogleGenerativeAI
from crewai import Agent, Task, Crew, Process
if name == "main":
Operating System
macOS Sonoma
Python Version
3.10
crewAI Version
0.63.6
crewAI Tools Version
0.12.1
Virtual Environment
Poetry
Evidence
Error Message in terminal :
Provider List: https://docs.litellm.ai/docs/providers
2024-10-03 16:03:06,390 - 8480485952 - llm.py-llm:104 - ERROR: Failed to get supported params: argument of type 'NoneType' is not iterable
Possible Solution
None
Additional context
Tried running the script multiple times, same issue
The text was updated successfully, but these errors were encountered: