mckaywrigley / chatbot-ui

Come join the best place on the internet to learn AI skills. Use code "chatbotui" for an extra 20% off.
https://JoinTakeoff.com
MIT License
28.92k stars 8.05k forks source link

OpenAI Assistants within Tool/Assitants #1213

Closed jsweetzer-ea closed 10 months ago

jsweetzer-ea commented 10 months ago

I see the fetch for this is currently commented out (and uncommenting doesn't enable) - is there an ETA for this feature as part of the overall Tools/Assistants?

On a related point, the addApiKeysToProfile function in server-chat-helpers should be adjusted to include the OpenAI org ID so that the env var can also be applied to users for this purpose.

Thanks again!

mckaywrigley commented 10 months ago

Hoping to have that by the end of the month. Mostly a UX issue. Started writing the code for it during the assistants update and realized we needed a separate area for those bc of threads, etc.

I'll fix the Org Id issue today!

jsweetzer-ea commented 10 months ago

Makes sense, thanks for the update.

RE threads - do you intend to replicate this kind of functionality within the app in some form? Or will Assistants in Chatbot UI effectively be Collections + Tools + Chat?

I ask because the persistence of context over time helps the Assistance use-case ("learning"), but equally the OpenAI implementation can become quite expensive token-wise for unoptimized use.

mckaywrigley commented 10 months ago

Our assistants are modeled after how OpenAI does GPTs as opposed to trying to mimic the Assistants API.

I'm open to expanding it. Just not sure yet how that'll play out.

jsweetzer-ea commented 10 months ago

Understood. If you're working on an Assistants API integration then probably no need short-term.

FWIW, I would only like/expect to be able to interact with the OpenAI Assistant, and ideally have some way to limit which OpenAI Assistants are exposed to certain users (even if this is entirely done manually in the DB). OpenAI Assistant creation/management, even file association, could/should all be done in the OpenAI Platform.

mckaywrigley commented 10 months ago

Yeah I think first step is just making so that, at the very least, people have a straightforward way to use their OpenAI assistants in the UI even if all of the "management" part of it is done natively over on OpenAI's playground.