Im trying to use OpenAI Api to read the content of a Pdf but when i send the message with the pdf attached im getting this error: "Here is the full translation, including the JSON:
"I was unable to find all the necessary data due to the format of the text extracted from the PDF. Below is the JSON with partial information:
{
"File": "file-BfjXxlvbiu1L0gMDgohyZya1",
"Business Name": "",
"Settlement Period": "",
"Contribution Account Code": "Incorrect format"
}
If you can provide more details about the structure of the PDF file or specific texts that contain this data, I will try to extract the information more accurately."
Here’s your text with corrected grammar and spelling:
All I did was create an Assistant, save a PDF in files, create a thread and assign the Assistant, create a message with the file ID as an attachment, run the message, and get the result. I’ve developed the full code in Java.