* Update embeddingEndpoints.ts
Adds the `Api-Key` Parameter instead of `Authorization` since OpenAI depends on API Key
* Add `defaultHeaders` to openAI embeddings endpoint and revert auth header
---------
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
* Add healthcheck route
* Add prom client with basic metrics
* wip: serve metrics on a different port
* exclude server from tsconfig
* latest
* refacto(all): use class & singleton
* refacto(all): use class & singleton
* refacto(all): add request logs
* Make all the env vars dynamic (#1092)
* Add truncate to task model (#1090)
* retry text area height (#1091)
* Make all the env vars dynamic
* only check for db at runtime
* remove secret from build step
* improve dockerfile
* Wrap db in singleton
* add .env.local to dockerignore
* changes to dockerfile
* lint
* aborted generations
* move collections build check
* Use a single dockerfile
* lint
* fixes
* lint
* don't return db during building
* remove dev
---------
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
* refacto(all): update default metrics port
* fix recursion error
* add version check
* revert vite preview
* Move request logs to debug level and add an env var to filter by log level in d…
Add openai embeddings (#915)
Martok88+1: nsarrazin
Unverified signature
3a3ecfd
* Add OpenAI embedding compatibility
* Use OPENAI_API_KEY by default
* lint
* Add default OpenAI URL
replace `authorization` by `apiKey`
* Add a note in readme
---------
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>