[Bug]: OpenAI Vision not working #1404
-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 7 replies
-
Maybe something wrong with my endpoint. Can you provide curl command for vision test? |
Beta Was this translation helpful? Give feedback.
-
The curl command should look something like this:
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -d '{
"model": "gpt-4-vision-preview",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Describe this image."
},
{
"type": "image_base64",
"image_base64": {
"base64": "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgwnLpRPAAA..."
}
}
]
}
]
}' "https://api.openai.com/v1/chat" |
Beta Was this translation helpful? Give feedback.
-
So for me works only like this:
if link like if img type not looks like endpoint matching openai api ref |
Beta Was this translation helpful? Give feedback.
-
Just to clarify, the curl command example I gave was just an example. I'm not 100% sure of the method used by librechat to send the image and I can't reproduce your problem using the official API |
Beta Was this translation helpful? Give feedback.
-
Image URL are not yet supported. Only uploaded base64 |
Beta Was this translation helpful? Give feedback.
-
I found the problem - my endpoint dosen't support base64 webp |
Beta Was this translation helpful? Give feedback.
I found the problem - my endpoint dosen't support base64 webp