-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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] Issues with Media Uploads for Gemini and Claude #3473
Comments
👀 @samkurd Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
#3370 is addressing this issue. |
#3370 seems to address only Gemini, but I'm facing issues with Claude too. Does that fix also solves the issue with Claude? |
trying to solve this problem too, if i can, i will say here how |
I'm looking forward to your solution, thanks @adminewacc |
almost solved ( claude lol ) |
That's a great news |
That's a great news |
solved, i later will try to request it |
tommorrow i solved it but i forgot to post here lol |
Oh that's amazing, thanks @adminewacc |
Oh that's amazing, thanks @adminewacc |
✅ @samkurd This issue is closed, If you have any questions, you can comment and reply. |
🎉 This issue has been resolved in version 1.15.30 🎉 The release is available on: Your semantic-release bot 📦🚀 |
unfortunately the error is still available and unresolved. |
@samkurd please share more info about the error you meet. |
This is the error I'm facing:
|
@samkurd what's the image you use? |
so I did a little digging, it only accepts png files and in my tests no other image format is supported. |
all fixed and working with OpenAI, Gemini and Claude. |
Is it possible to adapt this method to all of the model providers? I have built an One-API server, from which I may use Claude, Gemini, ChatGPT, etc. by simply configuring the OpenAI's API. When I was using Gemini with OpenAI config, it just returns: ![]()
and with ![]() |
📦 Environment
Vercel
📌 Version
v1.10.1
💻 Operating System
Windows
🌐 Browser
Edge
🐛 Bug Description
Hello,
I have been experiencing issues with media uploads in the lobe-chat repository. I have deployed the application using Vercel and have set up the database using Neon. Additionally, I am using Cloudflare for DNS handling.
Details:
Deployment Environment:
Platform: Vercel
Database: Neon
DNS Handling: Cloudflare
Issue Description:
Previous Behavior: Before the v1.10.1 update, there were errors with media uploads across all language models.
Current Behavior: After updating to v1.10.1, media uploads work fine with OpenAI. However, I am encountering errors when using the Gemini and Claude language models.
Error Messages:
Gemini:
"Error requesting Google service, please troubleshoot or retry based on the following information"
{ "error": { "message": "currently we don't support image url: https://mydomain.com/files/478784/8e3cec19-9eae-442d-91b4-4791cc58f4bb.jpg" }, "provider": "google" }
Claude:
"Error requesting Anthropic service, please troubleshoot or retry based on the following information"
{ "error": { "error": { "type": "error", "error": { "type": "invalid_request_error", "message": "messages.0.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'" } }, "status": 400, "headers": { "via": "1.1 google", "date": "Wed, 14 Aug 2024 07:34:00 GMT", "connection": "keep-alive", "request-id": "req_01LzcGdawx4398ndPL78KsKg", "content-type": "application/json", "x-robots-tag": "none", "content-length": "193", "x-should-retry": "false", "x-cloud-trace-context": "6a3fcc084a2ee937518088998956b28c" } }, "endpoint": "https://api.anthropic.com", "provider": "anthropic" }
This is the error I get on my Browser console:
https://mydomain.com/api/chat/google 471
📷 Recurrence Steps
🚦 Expected Behavior
Media uploads should work seamlessly across all language models, including Gemini and Claude.
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: