Commit History
-
Limit number of fetched conversations in the API (#954)
Unverified signature* Limit number of fetched conversations in the API * Add pagination * use vare9ad67e
-
Add conversation API endpoint to get conversation (#698)
Kevin CATHALY +2: Kevin CATHALY, Eliott C.Unverified signature* Sorting conversation list in api response * Add new conversation endpoint in the api * only expose needed param in the API * Update src/routes/api/conversations/+server.ts Co-authored-by: Eliott C. <coyotte508@gmail.com> * linter * fix type --------- Co-authored-by: Kevin CATHALY <alakme@kevins-mbp.home> Co-authored-by: Eliott C. <coyotte508@gmail.com>ee47ff3
-
Add an endpoints to expose models and conversations (#694)
Kevin CATHALY +3: Kevin CATHALY, nsarrazin, Eliott C. Unverified signature* Add an endpoint to expose available models * Add a route to list conversations history * use authCondition to filter current user's conversations * map models object to only keep needed params and also change the route path to /api/models * Put API feature behind feature flag (#695) * Puts the API behind a feature flag * Update src/hooks.server.ts Co-authored-by: Eliott C. <coyotte508@gmail.com> --------- Co-authored-by: Eliott C. <coyotte508@gmail.com> * add a better error when session's cookie is missing * rename error to message to be consistent --------- Co-authored-by: Kevin CATHALY <alakme@kevins-mbp.home> Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com> Co-authored-by: Eliott C. <coyotte508@gmail.com>c30d191