content_pdf_url

content_pdf_url(url)

Use a remote PDF for input to a chat.

Not all providers support PDF input, so check the documentation for the provider you are using.

Parameters

Name Type Description Default
url str A URL to a remote PDF file. required

Returns

Name Type Description
[](~chatlas.types.Content) Content suitable for a Turn object.

Raises

Name Type Description
ValueError If the URL is not valid, or if it’s a data: URL with an unsupported content type.