Find answers from the community

Updated 7 months ago

I am trying to use this : gpt_4o = OpenAIMultiModal(model="gpt-4o", max_new_tokens=4096) b

@kapa.ai I am trying to use this : gpt_4o = OpenAIMultiModal(model="gpt-4o", max_new_tokens=4096) but getting below error :

ValueError: Invalid model gpt-4o. Available models are: ['gpt-4-vision-preview']
k
L
p
4 comments
Please stand by @praveenks30#120294 as I search the knowledge base. I normally take about 20 seconds or so. :wave:
----------------------
It seems like the model "gpt-4o" is not available in your current setup. The error message suggests that the only available model is "gpt-4-vision-preview".

You can try replacing "gpt-4o" with "gpt-4-vision-preview" in your code:

Plain Text
gpt_4o = OpenAIMultiModal(model="gpt-4-vision-preview", max_new_tokens=4096)


Please note that the model you use can significantly affect the results of your program. Make sure "gpt-4-vision-preview" is suitable for your needs.

If you still want to use the "gpt-4o" model, you might need to check if it's available in your version of the library or if it requires a specific setup or configuration. You can refer to the LlamaIndex documentation () for more information.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
try pip install -U llama-index-multi-modal-llms-openai
Thanks @Logan M it is working now !
Add a reply
Sign up and join the conversation on Discord