mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-04-24 23:56:21 +02:00
fix model
This commit is contained in:
parent
6d1b505541
commit
4b4ae4d51d
5 changed files with 6 additions and 6 deletions
|
|
@ -410,7 +410,7 @@ def add_preface_if_needed(data):
|
|||
|
||||
|
||||
|
||||
def get_page_tokens(pdf_path, model="gpt-4.1", pdf_parser="PyPDF2"):
|
||||
def get_page_tokens(pdf_path, model="gpt-4o-2024-11-20", pdf_parser="PyPDF2"):
|
||||
enc = tiktoken.encoding_for_model(model)
|
||||
if pdf_parser == "PyPDF2":
|
||||
pdf_reader = PyPDF2.PdfReader(pdf_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue