content_pdf_file
content_pdf_file(path)
Prepare a local 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 |
---|---|---|---|
path | Union[str, os.PathLike] | A path to a local PDF file. | required |
Returns
Name | Type | Description |
---|---|---|
[](~chatlas.types.Content ) |
Content suitable for a Turn object. |