Chat Completion request vision model return 500s when system added

Same here with these:

%pip install -U openai==1.1.0 langchain==0.0.333 langchain-experimental==0.0.39 --upgrade

chat = ChatOpenAI(model="gpt-4-vision-preview", max_tokens=4096, temperature=0.6)
chat.invoke(
    [
        HumanMessage(
            content=[
                {"type": "text", "text": "What is your name"},
                {
                    "type": "image_url",
                    "image_url": {
                        "url": "https://raw.githubusercontent.com/langchain-ai/langchain/master/docs/static/img/langchain_stack.png",
                        "detail": "auto",
                    },
                },
            ]
        )
    ]
)

InternalServerError: Error code: 500 - {‘error’: {‘message’: ‘Something went wrong processing one of your images.’, ‘type’: ‘server_error’, ‘param’: None, ‘code’: None}}

1 Like