-
Notifications
You must be signed in to change notification settings - Fork 152
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
Unable to send images through the Swift SDK #77
Comments
Hi @PallavAg, can you share the full implementation code that you used which produced this error. Thanks. |
@PallavAg Thanks for the report. More specifically, would you send the cURL command that leads to the error? Follow the Logging instructions and the cURL command will show up in the Xcode console. |
@PallavAg have you been able to repro this error by sending the image directly via curl? |
Just took a look again at my implementation. I was accidentally combining the message text with the base64 string which was causing this issue. The new implementation works now. Appreciate the help - apologies for the troubles! |
Description of the bug:
Sending a UIImage through the API when using
gemini-pro-vision
fails with the following error response:This error consistently occurs.
Actual vs expected behavior:
No response
Any other information you'd like to share?
The multimodal swift demo also seems to time out. The normal text based generations work fine.
I have tried passing in both a
UIImage
as well as aModelContent.Part.png(myUIImage.pngData()!)
- both result in the same error.The text was updated successfully, but these errors were encountered: