pdfGPT
pdfGPT copied to clipboard
Upload PDF Display Error
Seems to be due to the issue of the PDF file being too large?What is the supported file content size?
Running on the demo URL
Same issues here
I am working on this
Same over here. Any update on the "error" issue?

I think I might know why , I upload a paper with sevealr formulas and charts,I got an erroe,but when I upload a file just words ,then it would work correctly.However, I use it is for reading API books which include many formulas and charts,I pretty need this function.Again ,thanks for the developer of this project , you are really awsome.
I tried running the source code and found that an excessive number of tokens can lead to errors. The model's tokens are limited, perhaps due to the same reason
You can try reducing max_ token or use gpt-3.5 turbo
completions = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
temperature=0,
messages=[
{"role": "user", "content": prompt}
]
)
message = completions['choices'][0]['message']['content']
You can try reducing max_ token or use gpt-3.5 turbo
completions = openai.ChatCompletion.create( model="gpt-3.5-turbo", temperature=0, messages=[ {"role": "user", "content": prompt} ] ) message = completions['choices'][0]['message']['content']
Thanks,that helps a lot , I`ll try it.