fix: default OCR prompt to markdown output
Kullanıcı OCR sonuçlarının markdown formatında gelmesini istedi — test edildi (gerçek çok sayfalı taranmış evrakta doğrulandı), tablo/başlık yapısını doğru yakalıyor.
This commit is contained in:
+1
-1
@@ -184,7 +184,7 @@ export async function callOllamaVisionOcr(
|
|||||||
messages: [
|
messages: [
|
||||||
{
|
{
|
||||||
role: 'user',
|
role: 'user',
|
||||||
content: opts.prompt || '<image>\nFree OCR.',
|
content: opts.prompt || '<image>\nConvert the document to markdown.',
|
||||||
images: [imageBase64],
|
images: [imageBase64],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user