CrewAI bad request

Hi! I tried to use an internal LLM from my company in my CrewAI project:
llm=LLM(

            model="gpt-4o",

            temperature=self.temperature,

            base_url=os.getenv("OPENAI_BASE_URL"),

            api_key=os.getenv("OPENAI_API_KEY"),

        ),

and i get this error: litellm.exceptions.BadRequestError: litellm.BadRequestError: OpenAIException - failed to parse the JWT claims. Please check the format of the Bearer token

Read LiteLLM for the specifications of the provider that you want to use. At first glance, the model should start with the provider in front e.g.: “openai/gpt-4o”

Hi and welcome to the community

The LLM Params have been changed a bit Connect to any LLM - CrewAI
I use
LLM(model="gpt-4.1")

This is worth a look if you have not already Build Crew - CrewAI

This error isn’t coming from CrewAI or even LiteLLM. Your provider is flagging an issue with the JSON Web Token (JWT) you’re passing in the api_key parameter.

Make sure the provided JWT consists of three parts separated by dots: HEADER.PAYLOAD.SIGNATURE.