Instructor + Genai + Support for GCS file uri #1476
vladislavkoz
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
instructor + genai + gemini models
I see that there is support for PDF files in 1.7.9.
However, I don't see an ability to use GCS uri. There is only PDF.from_url which means that it's about public URLs. And even with public URL it downloads content on my machine and then sends it as a base64 content in a request payload.
I checked how convert_to_genai_messages() func works
And even tried to construct message: Content manually like this:
But in this case I have: "TypeError: Can't compile non template nodes".
Can someone help with this and clarify whether it's currently possible to migrate from the direct use of google.genai in my scenario? The main pain point is use of gcs uri.
Beta Was this translation helpful? Give feedback.
All reactions