GPT 4o Mini not working after package update

Good afternoon folks,

I am attempting to run GPT 4o mini in my RAG AI system. I ran package updates to the following packages:

pip install --upgrade openai llama-index llama-index-agent-openai llama-index-embeddings-openai llama-index-llms-openai llama-index-multi-modal-llms-openai llama-index-program-openai llama-index-question-gen-openai

As well as uninstalled the packages and reinstalled but I am still having an error that says:

Error! Attempt failed with error Unknown model ‘gpt-4o-mini’. Please provide a valid OpenAI model name in: gpt-4, gpt-4-32k, gpt-4-1106-preview, gpt-4-0125-preview, gpt-4-turbo-preview, gpt-4-vision-preview, gpt-4-1106-vision-preview, gpt-4-turbo-2024-04-09, gpt-4-turbo, gpt-4o, gpt-4o-2024-05-13, gpt-4-0613, gpt-4-32k-0613, gpt-4-0314, gpt-4-32k-0314, gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-3.5-turbo-0125, gpt-3.5-turbo-1106, gpt-3.5-turbo-0613, gpt-3.5-turbo-16k-0613, gpt-3.5-turbo-0301, text-davinci-003, text-davinci-002, gpt-3.5-turbo-instruct, text-ada-001, text-babbage-001, text-curie-001, ada, babbage, curie, davinci, gpt-35-turbo-16k, gpt-35-turbo, gpt-35-turbo-0125, gpt-35-turbo-1106, gpt-35-turbo-0613, gpt-35-turbo-16k-0613. Retrying attempt.

Any guidance or assistance is highly appreciated.
The environment that I am using is AWS Cloud 9.

1 Like

Hey there…

Is it an old API key? Might try minting a new one and make sure it has permissions for the newest model.

That’s the only thing I can think of at the moment. What billing tier are you?

Let us know!

Yes I have an old API key that I am using which is under users. I have not created a new API key under Projects which is what I am going to try right now.

As for the tier I am not sure since I am using an organization account.

Try minting a new key, so we can cross that off the list.

Tier should be fine…

1 Like

New API Key worked! Thanks for your assistance I really appreciate it.

1 Like

Nice! Good to hear!

Well my Chat GPT isn’t letting me use mini either it says it “has an attachment”? I don’t even know what that means please help!