-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed as not planned
Labels
Description
Initial Checks
- I confirm that I'm using the latest version of Pydantic AI
- I confirm that I searched for my issue in https://github.com/pydantic/pydantic-ai/issues before opening this issue
Description
When working with local images, the BinaryContent type is misleading. Docs make it seem like this abstracts away file upload with the model provider, but instead it seems to pass the raw data as string in the prompt, which quickly consumes the entire token context window.
Example Code
Python, Pydantic AI & LLM client version
pypdantic-ai 1.0.15
gemini client (tried openai as well)
python 3.11.9