mv service_conf.yaml to conf/ and fix: add 'answer' as a parameter to 'generate' (#3379)

### What problem does this PR solve?
#3373

### Type of change

- [x] Refactoring
- [x] Bug fix
This commit is contained in:
Kevin Hu
2024-11-13 15:56:40 +08:00
committed by GitHub
parent 1fe9a2e6fd
commit ccf189cb7f
9 changed files with 80 additions and 81 deletions

View File

@ -191,7 +191,7 @@ AUTHENTICATION_DEFAULT_TIMEOUT = 7 * 24 * 60 * 60 # s
PRIVILEGE_COMMAND_WHITELIST = []
CHECK_NODES_IDENTITY = False
if 'username' in get_base_config("es", {}):
if 'hosts' in get_base_config("es", {}):
docStoreConn = rag.utils.es_conn.ESConnection()
else:
docStoreConn = rag.utils.infinity_conn.InfinityConnection()