Mintplex-Labs / anything-llm

The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, and more.
https://anythingllm.com
MIT License
27.63k stars 2.79k forks source link

Feature/thread creation slug name #2512

Closed timothycarambat closed 1 month ago

timothycarambat commented 1 month ago

Pull Request Type

original PR by @abrakadobr

Relevant Issues

closes #2507

What is in this change?

Optional slug and name params for workspace thread creation to use with API. Adds validation to .new creation to ensure valid field upsert and sluggification of the slug input to prevent breaking the URL when viewed by the user.

Additional Information

Without slug param there is no way to identify thread by some 3rd party uuid4 with api. It's possible to store somewhere additional relation of "3rd party uuid4 - threadSlug", but with having ability of defining thread slug manually - this will be not required - thread slug will be equal to "3rd party uuid" so it will be easy to get required thread.

With thread name definition - it will be easy to use UI as "admin tool for viewing results of api based chats "

Developer Validations