mobarski / ask-my-pdf

Question answering system for PDF files
MIT License
583 stars 289 forks source link

This model's maximum context length is 8191 tokens, however you requested 13831 tokens (13831 in your prompt; 0 for the completion). #46

Closed qixiaobo closed 1 year ago

qixiaobo commented 1 year ago

InvalidRequestError: This model's maximum context length is 8191 tokens, however you requested 13831 tokens (13831 in your prompt; 0 for the completion). Please reduce your prompt; or completion length. Traceback: File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 561, in _run_script self._session_state.on_script_will_rerun(rerun_data.widget_states) File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/safe_session_state.py", line 68, in on_script_will_rerun self._state.on_script_will_rerun(latest_widget_states) File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 474, in on_script_will_rerun self._call_callbacks() File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 487, in _call_callbacks self._new_widget_state.call_callback(wid) File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 242, in call_callback callback(*args, **kwargs)

qixiaobo commented 1 year ago

ref to https://github.com/mobarski/ask-my-pdf/pull/47

qixiaobo commented 1 year ago

Was this issue solved?

I just solve this in chinese