getomni-ai / zerox

PDF to Markdown with vision models
https://getomni.ai/ocr-demo
MIT License
6.68k stars 363 forks source link

still getting ```markdown in some responses #11

Closed tylermaran closed 2 months ago

tylermaran commented 3 months ago

This is a problem with the formatMarkdown regex. Just need to do a bit more string parsing to make sure the '''markdown deliminators are stripped out.

https://github.com/getomni-ai/zerox/blob/main/node-zerox/src/utils.ts#L13

xdotli commented 2 months ago

https://github.com/getomni-ai/zerox/pull/17 resolved in this PR