Add an endpoints to expose models and conversations (#694)
* 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>