Bug sending prompt to gtp4o using the API, not in the browser

I have a process where I use gpt4o via API to format and correct mistakes from GoogleAI OCR output by:

  1. submitting a the prompt (vai API endpoint)
  2. include the OCR output text to correct
  3. include the scanned image used for the OCR process

Normally this works good, but I came across a situation where no matter how I design the prompt, after gpt comes accorss this text in the image (which I will attach):
“One and no/100 - - - - - - - - -”
gpt4o stops processing as instructed and repeats these dashes 1000s of times to the end of the document. I will include some screenshots so you can see the problem. I hope this is a bug that can be fixed, meanwhile, is there a work-around I can use?

I have spent hours using gpt and perplexithy revising the prompt with no success.


1 Like