Closed handsomefox closed 3 months ago
This code works for me; can you try a different video file? For example, the .mp4
file from https://github.com/google/generative-ai-go/tree/main/genai/testdata
Hi! The problem is that this same code was working before as well, and now that I've checked - it works now as well.
This issue seems to be similar: https://github.com/google-gemini/generative-ai-js/issues/177
And the response from the author: "It just automagically fixed itself, don't know why. :) It works via Postman, gonna check if it works with AI SDK as well." applies here as well for me. idk
Thank you for the update; it sounds like a transient backend API problem. Going to close the issue for now
Description of the bug:
The following code from the examples at (https://ai.google.dev/gemini-api/docs/vision?lang=go#verify-file) fails with the error from the issue title (just replace a file with a real one).
This code also fails:
It logs:
Which means that the file exists, but client.GetFile has failed, somehow.
Actual vs expected behavior:
Actual:
The code fails on client.GetFile with error: googleapi: Error 500: Failed to convert server response to JSON
Expected:
client.GetFile works correctly and does not return an error.
Any other information you'd like to share?
Using: go 1.22.6, github.com/google/generative-ai-go v0.17.0