server: refactor to reflector module

- replaced loguru to structlog, to get ability of having open tracing later
- moved configuration to pydantic-settings
- merged both secrets.ini and config.ini to .env (check reflector/settings.py)
This commit is contained in:
Mathieu Virbel
2023-07-27 15:29:41 +02:00
parent 094ed696c4
commit 69ba871481
24 changed files with 385 additions and 283 deletions

View File

@@ -33,12 +33,12 @@ Then run the server:
```
# With a config.ini
$ poetry run python server.py
$ poetry run python -m reflector.server
# Within a poetry env
$ poetry shell
$ LLM_URL=http://.../api/v1/generate python server.py
$ LLM_URL=http://.../api/v1/generate python -m reflector.server
```