crewAIInc / crewAI-examples

A collection of examples that show how to use CrewAI framework to automate workflows.
2.86k stars 1.09k forks source link

OpenAI Model not obeying env variable OPENAI_MODEL_NAME #167

Closed adilazmoon closed 1 month ago

adilazmoon commented 1 month ago

When upgrading to 0.61.0, I found that my usage charges skyrocketed . Investigated further to realise that I was suddenly using gpt-4o instead of gpt-4o-mini. image No code change on my part, only difference was the upgrading of package version from 0.51.0 to 0.61.0.

Have the following line in my .env file as well OPENAI_MODEL_NAME=gpt-4o-mini