Open dahifi opened 1 month ago
I'm having the same issue. The participantIdentifier seems to come from the 'literalai' python package and doesn't have anything to do with my code that uses the chainlit library.
@dahifi Thank you soo much for the tips on resolving this issue!! 🤗 I've been running against a wall for hours trying to fix this bug, thinking it came from one of the changes I introduced to my project
Try to force update the version of literalai
. pip install -U literalai
I am also facing the same issue. Updating the literalai
package resolve it! Thank you so much
When I install chainlit it installs literalai-0.0.601 automatically. However this package seems to be the one that gives the error identified above when using client.api.get_thread. If I uninstall literalai and install literalai-0.0.606 then it works fine, but it complains it is incompatible with chainlit 1.1.202. Not sure if this is more of a pip issue or something to be resolved in chainlit
@kaannt yeah, the combination of recommended packages unfortunately leads to this bug.
As far as I understood the current best workaround (if you don't want to downgrade to an earlier chainlit version that bundles with a compatible, bug-free literalai version) is to force the update of literalai with pip install -U literalai
after installing the chainlit library normally (which includes the broken literalai-0.0.601). Especially when using docker or another build tool, I first installed my requirements.txt with the literalai-0.0.601 and then ran pip install -U literalai
, as otherwise pip would throw an incompatibility error (pip is just going by which library versions were marked to support each other according to the chainlit devs).
Although they do seem to work well together, this may introduce new bugs due to the versions being officially incompatible. So this is only a temporary workaround to get the chat history back with the current chainlit version. as soon as this bug is fixed you should upgrade the libraries to the newest version (and remove the pip -U command from the build config).
The new prerelease version of chainlit also seems to work well, has chat history available, but I found other bugs such as the message author not being displayed properly, instead showing the application name.
Describe the bug Clicking thread history fails to show thread. Skeleton shows briefly before going to blank screen. To Reproduce Install Chainlit 1.0.505 start server and click any thread in history.
Expected behavior Thread should display
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Downgrading to 1.0.505 or upgrading to the current RC resolves the issue.
...entire thread history follows.