Find answers from the community

Updated 9 months ago

Hi guys, I am trying to run this example

Hi guys, I am trying to run this example notebook - https://docs.llamaindex.ai/en/stable/examples/multi_modal/azure_openai_multi_modal/?h=azureopenaimultimodal
while trying to run the model to respond, e.g :
complete_response = azure_openai_mm_llm.complete(
prompt="Describe the images as an alternative text",
image_documents=[image_document],
)
getting this error - BadRequestError: Error code: 400 - {'error': {'message': 'Invalid content type. image_url is only supported by certain models.', 'type': 'invalid_request_error', 'param': 'messages.[0].content.[1].type', 'code': None}}
how to resolve this?
L
P
8 comments
Did you use the same LLM as the notebook?

Plain Text
 azure_openai_mm_llm = AzureOpenAIMultiModal(
    engine="gpt-4-vision-preview",
    api_version="2023-12-01-preview",
    model="gpt-4-vision-preview",
    max_new_tokens=300,
)
yeah, just changed the required fields
api_version is 2024-02-15-preview
I wonder if azure updated their API in that version
what can I do now?
Deploy your model with the same API verison/model name as the example? Not sure
I don't use azure lol
Add a reply
Sign up and join the conversation on Discord