diff --git a/.env.example b/.env.example index 6bbfc2c..c8c99aa 100644 --- a/.env.example +++ b/.env.example @@ -9,8 +9,8 @@ REDIS_LOCK_MAX_RETRIES=100 # 业务配置 COUNT_THRESHOLD=3 -EXTERNAL_API_RETRY_MAX=4 -EXTERNAL_API_URL=https://external.com/api/openapi/customerApi/aiTaskResultFail +EXTERNAL_API_RETRY_MAX=3 +EXTERNAL_API_URL=https://jeep-api.d2c.stlassac.com/api/openapi/customerApi/aiTaskResultFail # 日志配置 LOG_LEVEL=INFO diff --git a/app/config.py b/app/config.py index e47374e..3574d24 100644 --- a/app/config.py +++ b/app/config.py @@ -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