From ae9041dbae5313665dc397f1dd7c28c3bde2c803 Mon Sep 17 00:00:00 2001 From: Jorge Torres Date: Wed, 9 Oct 2024 12:41:44 -0400 Subject: [PATCH] Update ocr.py no max tokens --- src/aipdf/ocr.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/aipdf/ocr.py b/src/aipdf/ocr.py index e82bda3..40dfc54 100644 --- a/src/aipdf/ocr.py +++ b/src/aipdf/ocr.py @@ -48,8 +48,7 @@ def process_image_to_markdown(file_object, client, model="gpt-4o", prompt = DEF } ] } - ], - max_tokens=1000 + ] ) # Extract the markdown content from the response