改配置
This commit is contained in:
@@ -3,7 +3,7 @@ from pydantic_settings import BaseSettings
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# 数据库配置
|
||||
database_url: str = "postgresql+asyncpg://user:password@localhost:5432/ai_talk_callback_db"
|
||||
database_url: str = ""
|
||||
|
||||
# Redis配置
|
||||
redis_url: str = "redis://localhost:6379/0"
|
||||
@@ -13,8 +13,8 @@ class Settings(BaseSettings):
|
||||
|
||||
# 业务配置
|
||||
count_threshold: int = 3 # count阈值,大于等于此值直接返回
|
||||
external_api_retry_max: int = 4 # 外部API最大重试次数
|
||||
external_api_url: str = "https://external.com/api/openapi/customerApi/aiTaskResultFail"
|
||||
external_api_retry_max: int = 3 # 外部API最大重试次数
|
||||
external_api_url: str = ""
|
||||
|
||||
# 日志配置
|
||||
log_level: str = "INFO" # DEBUG, INFO, WARNING, ERROR, CRITICAL
|
||||
|
||||
Reference in New Issue
Block a user