Skip to content

Commit

Permalink
Update ocr.py
Browse files Browse the repository at this point in the history
no max tokens
  • Loading branch information
torrmal authored Oct 9, 2024
1 parent 3592504 commit ae9041d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/aipdf/ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae9041d

Please sign in to comment.