mckaywrigley / chatbot-ui

Come join the best place on the internet to learn AI skills. Use code "chatbotui" for an extra 20% off.
https://JoinTakeoff.com
MIT License
28.44k stars 7.91k forks source link

Uploading images is not working anymore. Have not changed anything. #1747

Open weareturnone opened 4 months ago

weareturnone commented 4 months ago

Hey there, uploading images does not work anymore. PDF, Docx etc. does work fine. I have changed nothing, it stopped working after updating chatbotui two days ago.

Error image:

400 Invalid type for 'messages[1].content[1].image_url': expected an object, but got a string instead.

CleanShot 2024-05-23 at 16 48 57@2x

kovrichard commented 4 months ago

Which model are you using? Are you sure you are on the latest commit? I created this pull request last week that solves exactly the issue you are facing.

spammenotinoz commented 4 months ago

If you are using Anthropic images must be less than 5mb but works best when under 400kb. Best to compresd/re-size prior to upload, that should fix your issue.

ishiijp commented 3 months ago

I encountered the same issue. On the official site https://www.chatbotui.com/, the same problem occurs with gpt-4o and gpt-4-turbo. There was no issue with gpt-4-vision.

On the OpenAI site, you can upload images without any problem even if you select the gpt-4o model.

ndroo commented 3 months ago

https://github.com/mckaywrigley/chatbot-ui/issues/1773

This is what i did to fix this for myself