Spaces:
Runtime error
Runtime error
Update configuration template
Browse files- .env.template +1 -6
- src/ctp_slack_bot/core/config.py +3 -7
.env.template
CHANGED
|
@@ -8,15 +8,10 @@ LOG_LEVEL=INFO
|
|
| 8 |
LOG_FORMAT=text
|
| 9 |
|
| 10 |
# APScheduler Configuration
|
| 11 |
-
SCHEDULER_TIMEZONE=
|
| 12 |
-
|
| 13 |
-
# API Configuration
|
| 14 |
-
API_HOST=0.0.0.0
|
| 15 |
-
API_PORT=8000
|
| 16 |
|
| 17 |
# Slack Configuration
|
| 18 |
SLACK_BOT_TOKEN=🪙
|
| 19 |
-
SLACK_SIGNING_SECRET=🔏
|
| 20 |
SLACK_APP_TOKEN=🦥
|
| 21 |
|
| 22 |
# Vectorization Configuration
|
|
|
|
| 8 |
LOG_FORMAT=text
|
| 9 |
|
| 10 |
# APScheduler Configuration
|
| 11 |
+
SCHEDULER_TIMEZONE="America/New_York"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Slack Configuration
|
| 14 |
SLACK_BOT_TOKEN=🪙
|
|
|
|
| 15 |
SLACK_APP_TOKEN=🦥
|
| 16 |
|
| 17 |
# Vectorization Configuration
|
src/ctp_slack_bot/core/config.py
CHANGED
|
@@ -14,15 +14,11 @@ class Settings(BaseSettings): # TODO: Strong guarantees of validity, because gar
|
|
| 14 |
LOG_FORMAT: Literal["text", "json"] = "json"
|
| 15 |
|
| 16 |
# APScheduler Configuration
|
| 17 |
-
SCHEDULER_TIMEZONE: str = "UTC"
|
| 18 |
-
|
| 19 |
-
# API Configuration
|
| 20 |
-
API_HOST: str
|
| 21 |
-
API_PORT: PositiveInt
|
| 22 |
|
| 23 |
# Slack Configuration
|
| 24 |
SLACK_BOT_TOKEN: SecretStr
|
| 25 |
-
SLACK_SIGNING_SECRET: SecretStr
|
| 26 |
SLACK_APP_TOKEN: SecretStr
|
| 27 |
|
| 28 |
# Vectorization Configuration
|
|
@@ -40,7 +36,7 @@ class Settings(BaseSettings): # TODO: Strong guarantees of validity, because gar
|
|
| 40 |
HF_API_TOKEN: Optional[SecretStr] = None
|
| 41 |
|
| 42 |
# OpenAI Configuration
|
| 43 |
-
OPENAI_API_KEY:
|
| 44 |
CHAT_MODEL: str
|
| 45 |
MAX_TOKENS: PositiveInt
|
| 46 |
TEMPERATURE: NonNegativeFloat
|
|
|
|
| 14 |
LOG_FORMAT: Literal["text", "json"] = "json"
|
| 15 |
|
| 16 |
# APScheduler Configuration
|
| 17 |
+
SCHEDULER_TIMEZONE: Optional[str] = "UTC"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# Slack Configuration
|
| 20 |
SLACK_BOT_TOKEN: SecretStr
|
| 21 |
+
SLACK_SIGNING_SECRET: Optional[SecretStr] = None
|
| 22 |
SLACK_APP_TOKEN: SecretStr
|
| 23 |
|
| 24 |
# Vectorization Configuration
|
|
|
|
| 36 |
HF_API_TOKEN: Optional[SecretStr] = None
|
| 37 |
|
| 38 |
# OpenAI Configuration
|
| 39 |
+
OPENAI_API_KEY: SecretStr
|
| 40 |
CHAT_MODEL: str
|
| 41 |
MAX_TOKENS: PositiveInt
|
| 42 |
TEMPERATURE: NonNegativeFloat
|