Skip to content

Conversation

@Kludex
Copy link
Member

@Kludex Kludex commented Oct 13, 2025

No description provided.

@github-actions
Copy link

Docs Preview

commit: 26bbddf
Preview URL: https://689b4809-pydantic-ai-previews.pydantic.workers.dev

"""Create a `BinaryContent` from a path."""
if not isinstance(path, Path):
path = Path(path)
# TODO(Marcelo): We should be able to infer the `media_type` from the filename.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, extract it from our existing logic, or just use mimetypes directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants