dimagi / open-chat-studio

A web based platform for building Chatbots backed by Large Language Models
BSD 3-Clause "New" or "Revised" License
14 stars 7 forks source link

API endpoint to create sessions with prepopulated history #480

Closed SmittieC closed 3 months ago

SmittieC commented 3 months ago

https://github.com/dimagi/open-chat-studio/issues/475. See the "proposed endpoint" section in this doc.

API endpoint to create sessions with prepopulated history. These can be ephemeral if need be. I also updated the API endpoint to support "multi sessions". Basically we can now specify which session to use when chatting to the API. If no session identifier is present, we create a new one and return the session id in the response.

The idea is to expand on this call for the "stateless" api work.

A sneaky fix I included is to exclude the user's own API sessions from the sessions view