GPT-5 + LiteLLM

Due to the new parameters that GPT-5 expects as well as the ones that aren’t used anymore, I’m running into issues with my crew when trying to use gpt-5. It seems that liteLLM is now on 1.77.3 but crewai is still locked to 1.74.9. I assume that this may be related to the changes in gpt-5.

Anyone get this working and have all the crewai metadata available after a gpt-5 call via liteLLM? Is there a new version of crewai coming that will be able to use more recent versions of liteLLM?

from crewai import LLM
import os

os.environ["OPENAI_API_KEY"] = "sk-YOUR-KEY"

gpt_5_llm = LLM(
    model="openai/gpt-5",
    drop_params=True,
    additional_drop_params=["stop", "temperature"]
)

Thanks Max. Working now. :+1: