You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Sorry - no pull request from me this time - it's too in depth 😄 )
When attempting to create a new thread in a workspace using the API and providing a userId, an error occurs. This issue can be reproduced using the provided code or directly in the Swagger UI.
Environment:
Running AnythingLLM in Docker
Version: 1.2.2 (also tested in 1.2.1)
Tested on Windows WSL2 Docker and Ubuntu in GitHub Codespaces
I am not sure if this is the intention, but this endpoint is more for "UI automation" or management of the threads also visible in the UI. We recently introduced the sessionId key on workspace/(chat or stream-chat) endpoint that you can now use some external identifier per request and keep chat history per call without making threads or polluting the UI with threads/chats for any specific user.
Thanks @timothycarambat it was a bit of both - but ultimately the sessionId (which I've tested - and works great) will be the winner for my + other's use cases. Great!
How are you running AnythingLLM?
Docker (local)
What happened?
(Sorry - no pull request from me this time - it's too in depth 😄 )
When attempting to create a new thread in a workspace using the API and providing a
userId
, an error occurs. This issue can be reproduced using the provided code or directly in the Swagger UI.Environment:
Are there known steps to reproduce?
Run AnythingLLM in Docker:
Fill in a new AI provider.
Generate a new API key (e.g.,
<MY_API_KEY>
).HTTP REST Example:
CURL Example:
Result:
The API responds with:
Expected Behavior:
The thread should be created successfully when a valid
userId
is provided.The text was updated successfully, but these errors were encountered: