-
Notifications
You must be signed in to change notification settings - Fork 148
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
Prompts with video failing with error 500 #203
Comments
Thank you reporting this issue. This looks like an intermittent error and should work now. |
@gmKeshari, thanks. I've reported the issue to the AI Forum. |
@gmKeshari it turns out that this is a known issue with the API. According to another post, sending video data inline causes the error. The suggested way is to use the file API. Any chance the Swift SDK could be updated to support this? |
Hi @anupdsouza, unfortunately we don't have plans to add support for uploading files with the File API at this time. Please see #201 (comment) for a potential alternative with the Vertex AI in Firebase SDK. |
Thanks @andrewheard. I eventually switched to Vertex as I needed video support, although it's a lot more dependencies compared to the Swift SDK. I hope video support comes around soon 🤞🏼 |
Description of the bug:
Observing this for the past 30 hours or so. Uploading a video with a prompt is always resulting in error code 500. Image & document uploads seem to work fine. Size of the video file being 1.1 MB.
Request:
----- cURL command -----
curl -H 'x-goog-api-key: <KEY>' -H 'Content-Type: application/json' -H 'x-goog-api-client: genai-swift/0.5.4' 'https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent' -d '{"contents":[{"role":"user","parts":[{"text":"Analyze this video"},{"inline_data":{"data":"AAAAHGZ0eXBtcDQyAAAAAWlzb21tcDQxbXA0MgAAAAFtZGF0AAAAAAAGHigAACC2ZYiCAF9tD+CpeFgSic1MJlFb+kje1p6UbSkRhmtb....
Response:
Actual vs expected behavior:
Requests should not fail
Any other information you'd like to share?
No response
The text was updated successfully, but these errors were encountered: