mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2025-12-16 21:20:39 +03:00
add question count table (#73)
* update admin url * update log level * add user question count table * rename ChatGpt to ChatGptModels * change user to root in ci tests * add chatgpt_shared volume
This commit is contained in:
@@ -22,6 +22,7 @@ SENTRY_TRACES_SAMPLE_RATE="0.95"
|
||||
DEPLOY_ENVIRONMENT="stage"
|
||||
|
||||
# ==== logs ====:
|
||||
LOG_LEVEL="info" # "debug", "info", "warning", "error", "critical"
|
||||
ENABLE_JSON_LOGS="true"
|
||||
ENABLE_SENTRY_LOGS="false"
|
||||
|
||||
@@ -38,7 +39,7 @@ START_WITH_WEBHOOK="false"
|
||||
|
||||
# ==== domain settings ====
|
||||
DOMAIN="https://mydomain.com"
|
||||
URL_PREFIX="/gpt"
|
||||
URL_PREFIX="/"
|
||||
CHAT_PREFIX="/chat"
|
||||
|
||||
# ==== gpt settings ====
|
||||
|
||||
@@ -8,7 +8,7 @@ from pydantic import SecretStr, model_validator
|
||||
from pydantic_settings import BaseSettings
|
||||
from yarl import URL
|
||||
|
||||
from constants import API_PREFIX, CHATGPT_BASE_URI
|
||||
from constants import API_PREFIX, CHATGPT_BASE_URI, LogLevelEnum
|
||||
|
||||
BASE_DIR = Path(__file__).parent.parent
|
||||
SHARED_DIR = BASE_DIR.resolve().joinpath("shared")
|
||||
@@ -39,6 +39,7 @@ class SentrySettings(BaseSettings):
|
||||
|
||||
|
||||
class LoggingSettings(BaseSettings):
|
||||
LOG_LEVEL: LogLevelEnum = LogLevelEnum.INFO
|
||||
ENABLE_JSON_LOGS: bool = True
|
||||
ENABLE_SENTRY_LOGS: bool = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user