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
as I am using the Gemini model as the llm, I have defined the Gemini API key like this (outside yaml in the code space)
import os
os.environ['GEMINI_API_KEY'] = 'api_key'
when I execute the kickoff
result = crew.kickoff(
inputs=inputs
)
I am getting an error ERROR:root:LiteLLM call failed: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
can someone help how to set the api_key properly while using Gemini as llm when defining agents from yaml? Do I need to define the API key in yaml?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
here is the agent configuration that I have defined in the yaml file
as I am using the Gemini model as the llm, I have defined the Gemini API key like this (outside yaml in the code space)
when I execute the kickoff
I am getting an error
ERROR:root:LiteLLM call failed: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
can someone help how to set the api_key properly while using Gemini as llm when defining agents from yaml? Do I need to define the API key in yaml?
Beta Was this translation helpful? Give feedback.
All reactions