crewAIInc/crewAI-examples

OpenAI Model not obeying env variable OPENAI_MODEL_NAME

adilazmoon opened this issue · 0 comments

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