Open krishokr opened 2 months ago
With the chatbot type, there are two errors that occur just after initial thread creation (when the state is empty):
chatbot
When trying to stream with or without a newly created thread_id in the request body (a new thread is created if a thread_id is not provided)
thread_id
{"detail":"Failed to retrieve thread state: 'NoneType' object is not iterable"}
When calling a GET request to fetch the /state.
GET
{"status_code":500,"message":"Internal Server Error: 'id'"}
On the following streams and state calls to these endpoints, it is successful and works as intended.
Fetching the state with an empty thread:
Streaming with an empty thread: https://github.com/user-attachments/assets/dbce6e90-e286-4d43-9f2d-ed0de2525a68
Issues
With the
chatbot
type, there are two errors that occur just after initial thread creation (when the state is empty):When trying to stream with or without a newly created
thread_id
in the request body (a new thread is created if athread_id
is not provided){"detail":"Failed to retrieve thread state: 'NoneType' object is not iterable"}
When calling a
GET
request to fetch the /state.{"status_code":500,"message":"Internal Server Error: 'id'"}
On the following streams and state calls to these endpoints, it is successful and works as intended.
Fetching the state with an empty thread:
Streaming with an empty thread: https://github.com/user-attachments/assets/dbce6e90-e286-4d43-9f2d-ed0de2525a68