Cookie Monster
02/07/2026, 7:54 AMfrom baml_py import Image
img = Image.from_url(f.absolute().as_posix())
content = b.DescribeMedia(img)
When i read the image i get an error at `content = b.DescribeMedia(img)`:
baml_py.internal_monkeypatch.BamlValidationError: BamlValidationError(message=Internal Failure: Failed to fetch media: builder error
Caused by:
relative URL without a base - Failed to fetch media: builder error
Caused by:
relative URL without a base, raw_output=, prompt=N/A, detailed_message=Parsing error: Internal Failure: Failed to fetch media: builder error
Caused by:
relative URL without a base - Failed to fetch media: builder error
Caused by:
relative URL without a base
Prompt: N/A
Raw Response: )
It is an absolute path to the file. The test case below works fine :
test Test {
functions [DescribeMedia]
args {
img {
file "<ABSOLUTE_PATH>"
}
}
}Vaibhav (BAML 🐑)
02/09/2026, 9:02 AM