You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried supplying a PDF via the UserImageMessage type, but that fails with the following error from openai:
openai.BadRequestError: Error code: 400 - {'error': {'message': "You uploaded an unsupported image. Please make sure your image is below 20 MB in size and is of one the following formats: ['png', 'jpeg', 'gif', 'webp'].", 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_image_format'}}
Is there a way to do this with magentic?
The text was updated successfully, but these errors were encountered:
barapa
changed the title
Is it possible to provide a PDF?
Is it possible to provide a PDF in a prompt?
Aug 19, 2024
@barapa I think this out of scope for magentic. You will have to use https://github.com/Belval/pdf2image or another library to convert from PDF to one of those supported formats.
I have tried supplying a PDF via the
UserImageMessage
type, but that fails with the following error from openai:openai.BadRequestError: Error code: 400 - {'error': {'message': "You uploaded an unsupported image. Please make sure your image is below 20 MB in size and is of one the following formats: ['png', 'jpeg', 'gif', 'webp'].", 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_image_format'}}
Is there a way to do this with magentic?
The text was updated successfully, but these errors were encountered: