[Bug] "message": "Invalid image." ask chat about uploaded image #4375
-
📦 EnvironmentDocker 📌 Version1.19.2 💻 Operating SystemOther Linux 🌐 BrowserFirefox 🐛 Bug DescriptionAfter successfully uploaded a image in jpg or png format ( image correctly show in chat window ) , after asking any questions regarding image show that error message : { 📷 Recurrence StepsNo response 🚦 Expected BehaviorNo response 📝 Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
Hey @KnightNFS! 👋 I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together! The error message "Invalid image" indicates that the image being sent to the OpenAI API is not being accepted. This could be due to several reasons, such as incorrect encoding, unsupported format, or size restrictions. Here are a few steps to troubleshoot and resolve this issue:
By following these steps, you should be able to identify and resolve the issue with the "Invalid image" error. If the problem persists, you may need to add additional logging to capture more details about the image being sent to the API. |
Beta Was this translation helpful? Give feedback.
-
I have the same error, for some days now. error in container: message: 'Invalid image.', type: 'invalid_request_error', param: null, code: 'invalid_image' } |
Beta Was this translation helpful? Give feedback.
-
try to add an env |
Beta Was this translation helpful? Give feedback.
-
After set this env , "invalid image" problem solved lobehub/lobe-chat-database v1.22.3 |
Beta Was this translation helpful? Give feedback.
-
can confirm, this env solves the issue |
Beta Was this translation helpful? Give feedback.
try to add an env
LLM_VISION_IMAGE_USE_BASE64=1
. refs: #3888