增加外部接口调用开关

This commit is contained in:
mark.tian
2025-12-03 08:52:13 +08:00
parent 5fc68ddb58
commit 4c544c296c
5 changed files with 54 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ class Settings(BaseSettings):
# 业务配置
count_threshold: int = 3 # count阈值,大于等于此值直接返回
external_api_enabled: bool = False # 是否启用外部API调用
external_api_retry_max: int = 3 # 外部API最大重试次数
external_api_url: str = ""
@@ -26,6 +27,7 @@ class Settings(BaseSettings):
# 应用配置
app_name: str = "AI Talk Callback API"
environment: str = "production" # 环境: production, test, development
debug: bool = False
class Config: