-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Support passing files uploaded to Gemini Files API and setting custom media type #2270
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
Conversation
…de parameter name with property name
|
@dprov Thanks! |
… media type (pydantic#2270) Co-authored-by: David <[email protected]>
|
@DouweM conflicts with the docs here: Maybe the docs needs to be updated? Also, would be nice to get an example code in the docs showing a file being uploaded to Gemini and then referenced in a pydantic-ai message, it's not straightforward to me. |
|
@marmor7 Good point, it's explained in the code comment but not the docs: pydantic-ai/pydantic_ai_slim/pydantic_ai/models/google.py Lines 610 to 613 in eae558b
Good point; I'm glad you figured it out eventually but the next person should have an easier time. Would you be up for adding both to the docs? |
Uh oh!
There was an error while loading. Please reload this page.