add more tests (#19)

This commit is contained in:
Dmitry Afanasyev
2023-09-29 13:54:57 +03:00
committed by GitHub
parent 7cfda281f7
commit 90ec8ccec1
15 changed files with 263 additions and 76 deletions

View File

@@ -12,6 +12,8 @@ TELEGRAM_API_TOKEN="123456789:AABBCCDDEEFFaabbccddeeff-1234567890"
DOMAIN="http://localhost"
URL_PREFIX=
GPT_BASE_HOST="http://localhost"
# set to true to start with webhook. Else bot will start on polling method
START_WITH_WEBHOOK="false"

View File

@@ -12,6 +12,8 @@ TELEGRAM_API_TOKEN="123456789:AABBCCDDEEFFaabbccddeeff-1234567890"
DOMAIN="http://localhost"
URL_PREFIX=
GPT_BASE_HOST="http://localhost"
# set to true to start with webhook. Else bot will start on polling method
START_WITH_WEBHOOK="false"

View File

@@ -49,6 +49,7 @@ class AppSettings(SentrySettings, BaseSettings):
URL_PREFIX: str = ""
GPT_MODEL: str = "gpt-3.5-turbo-stream-AItianhuSpace"
GPT_BASE_HOST: str = "http://chat_service:8858"
# quantity of workers for uvicorn
WORKERS_COUNT: int = 1
# Enable uvicorn reloading