Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Images are corrupted after sending #5148

Closed
ducatiqwq opened this issue Dec 23, 2024 · 4 comments · Fixed by #5167
Closed

[Bug] Images are corrupted after sending #5148

ducatiqwq opened this issue Dec 23, 2024 · 4 comments · Fixed by #5167
Labels
🐛 Bug Something isn't working | 缺陷 files 上传文件/知识库 released

Comments

@ducatiqwq
Copy link

📦 Environment

Official Preview

📌 Version

v1.37.2

💻 Operating System

Windows

🌐 Browser

Chrome

🐛 Bug Description

Each time I upload an image and click 'Send', the image becomes corrupted.

I confirm that the image itself is intact.

Two screenshots are uploaded. Hope this helps!

1cbd5973-06b5-4c24-b103-c7131bde4f9e

e63b0698-5dc1-4811-9aaa-06ebfec3ae62

📷 Recurrence Steps

Upload any image and the error will recur.

🚦 Expected Behavior

I expect that this bug could be fixed so that images can be uploaded and sent smoothly.

📝 Additional Information

No response

@ducatiqwq ducatiqwq added the 🐛 Bug Something isn't working | 缺陷 label Dec 23, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Dec 23, 2024
@lobehubbot
Copy link
Member

👀 @ducatiqwq

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@ducatiqwq ducatiqwq changed the title [Bug] Illegal base64 data at input byte 6 [Bug] Images are corrupted after sending Dec 23, 2024
Copy link

dosubot bot commented Dec 23, 2024

Hey there, @ducatiqwq! I'm here to help you with any bugs, questions, or contributions. Let's work together to solve this issue.

A similar issue was previously reported and closed. The issue titled "[Bug] Fail to send prompt with image with Azure GPT-4 2024-04-09" was resolved by a pull request that fixed the Azure OpenAI Vision models issue [1].

The error "illegal base64 data at input byte 6" typically occurs due to an issue in converting the image URL to a base64 string. Ensure that the imageUrlToBase64 function correctly converts the image data to a base64 string and that the resulting string is properly formatted. Additionally, verify that the environment variable LLM_VISION_IMAGE_USE_BASE64 is set to '1' to trigger the base64 conversion process [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the files 上传文件/知识库 label Dec 23, 2024
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Dec 24, 2024
@lobehubbot
Copy link
Member

@ducatiqwq

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@lobehubbot
Copy link
Member

🎉 This issue has been resolved in version 1.39.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 files 上传文件/知识库 released
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants