lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
45.1k stars 10.17k forks source link

[Bug] 4o not support image upload #3951

Open MingqianZhang opened 2 months ago

MingqianZhang commented 2 months ago

📦 Environment

Docker

📌 Version

newest

💻 Operating System

macOS

🌐 Browser

Chrome

🐛 Bug Description

when i tried to ask question with image, it returns an error as below. but when switching to claude model, it worked with image. { "error": { "code": "BadRequest", "type": null, "param": null, "message": "The provided image url is not accessible." }, "endpoint": "https://xxxx, "provider": "azure" }

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

lobehubbot commented 2 months ago

👀 @MingqianZhang

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

dosubot[bot] commented 2 months ago

@MingqianZhang Hello there! I'm here to help you with any bugs, questions, or contributions. Let me know how I can assist you. Dosu

The error message "The provided image url is not accessible" indicates a 'BadRequest' error from the Azure service. This can occur due to several reasons, such as network issues, incorrect cross-origin settings, or unsupported file types.

Here are some steps to troubleshoot and resolve this issue:

  1. Network and Cross-Origin Settings: Ensure that your network is stable and that the cross-origin settings for your file storage service are correctly configured [1].

  2. File Type Support: Verify that the image file type is supported by the Azure provider. In the current deployment mode, only image files are supported for upload [1].

  3. Error Handling: The code handles 'BadRequest' errors by logging the error details and creating an error response. Ensure that the Azure-specific configurations such as apiVersion, apikey, and endpoint are correctly set [2].

  4. Logging: Check the server logs for more detailed error messages. The code logs errors on the server side using console.error when an exception occurs during the image upload process [3].

If the issue persists, you may need to review the specific configurations for Azure in your codebase to ensure they are correctly defined and implemented.

To continue talking to Dosu, mention @dosu.

dicktangdev commented 1 month ago

same issue and same error here