baml
baml copied to clipboard
first-class support for PDFs
Add support for PDFs:
- anthropic now supports passing in PDFs directly (tweet)
- pretty sure at least one other model provider supports this
For reference, I also created #1499 for this, last week.
OpenAI also supports this, but I believe they do it via the Assistants API. I'm not sure how you abstract this functionality, but it would be great to have provider-agnostic direct PDF support.
@alioguzhan the way we'd make this provider agnostic is likely by reading in PDFs in BAML itself and by creating a pdf type :)
But in the manehilw, ed like to support the providers that support this directly.
Hi @hellovai, curious when this will land? We'd like to leverage native PDF support as well.
@hellovai any updates on native pdf support?
Does https://github.com/BoundaryML/baml/pull/2121 closes this?
yep it is supported now! https://docs.boundaryml.com/ref/baml/types#pdf Version 0.202+