langchain-ai / opengpts

MIT License
6.3k stars 827 forks source link

Fix thread state 500 error (when Retrieval tool is used) #320

Closed bakar-io closed 2 months ago

bakar-io commented 2 months ago

Without passing assistant_id (in configurable) to aget_state, aupdate_state and aget_state_history, the following exception is raised:

ValueError: Both assistant_id and thread_id must be provided if Retrieval tool is used.

This happens when Retrieval tool is being used.