feat: api will disable search if no meilisearch connection

This commit is contained in:
Daniel Avila 2023-03-21 19:44:31 -04:00
parent 97a6cd801b
commit 94c0fbb525
2 changed files with 25 additions and 4 deletions

View file

@ -21,10 +21,16 @@ OPENAI_KEY=
CHATGPT_TOKEN=
BING_TOKEN=
# User System
# Enable Message/Convo Search
# Requires installation of self-hosted Meilisearch or Paid Remote Plan
# this is taken care of you if you use the docker-compose file.
# SEARCH=TRUE
SEARCH=
MEILI_HOST='http://localhost:7700'
MEILI_KEY='MASTER_KEY'
# User System
# global enable/disable the sample user system.
# this is not a ready to use user system.
# dont't use it, unless you can write your own code.
SEARCH=
ENABLE_USER_SYSTEM=
ENABLE_USER_SYSTEM=