After upgrading to latest version of crewAI the code doesn't work anymore

How to solve this problem?

1 Like

set this on your agents

llm='sambanova/Meta-Llama-3.1-8B-Instruct'

You can now remove this

os.environ["OPENAI_API_KEY"] = "xxxxxxxxxxxxxxxxx"
os.environ["OPENAI_API_BASE"] = 'https://api.sambanova.ai/v1/'
os.environ["OPENAI_MODEL_NAME"] = 'Meta-Llama-3.1-8B-Instruct

Then add this

os.environ['SAMBANOVA_API_KEY'] = "sambanova_api_key"

Please see docs for litellm

I fear the same thing.