Describe the bug
After I uploaded a pdf file and asked the agent to summarize for me, the error pops says that it's not able to fetch any LLM config details.
The execution of the generated python code above has failed
During execution, the following messages were logged:
Traceback (most recent call last):
Cell In[2], line 2
summary, description = paper_summary("PhD_Thesis_ChaoyangHeApril_2022.pdf")
File /var/folders/mv/km2zkg_514d6dzr1mb_j92y00000gn/T/tmp7bzg3y0b/paper_summary.py:23 in call
Describe the bug After I uploaded a pdf file and asked the agent to summarize for me, the error pops says that it's not able to fetch any LLM config details.
The execution of the generated python code above has failed
During execution, the following messages were logged: Traceback (most recent call last):
Cell In[2], line 2 summary, description = paper_summary("PhD_Thesis_ChaoyangHeApril_2022.pdf")
File /var/folders/mv/km2zkg_514d6dzr1mb_j92y00000gn/T/tmp7bzg3y0b/paper_summary.py:23 in call
File:684 in setitem
File:758 in encode
TypeError: str expected, not NoneType
2024-02-09 16:30:07 - Use back up engine: True 2024-02-09 16:30:09 - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
To Reproduce Steps to reproduce the behavior:
chainlit run app.py
Expected behavior The expected result is that agent will generate a summary according to the pre-built prompt
Screenshots
Environment Information (please complete the following information):
Additional context None