feat/ internal eval平台现支持实机联调。 1. 显示当前本地数据库里登录用户的历史聊天,已生成的回忆录。支持在网页直接对话,不依赖手机app。
This commit is contained in:
@@ -50,6 +50,8 @@ class Settings(BaseSettings):
|
||||
algorithm: str = "HS256"
|
||||
access_token_expire_minutes: int = 120
|
||||
refresh_token_expire_days: int = 30
|
||||
# 本地/内网评测:允许 POST /api/auth/mock/sms-login 跳过短信(须显式开启;production 下路由仍拒绝)
|
||||
mock_sms_login_enabled: bool = False
|
||||
|
||||
# ── LLM / DeepSeek ───────────────────────────────────────
|
||||
deepseek_api_key: str = ""
|
||||
@@ -209,6 +211,15 @@ class Settings(BaseSettings):
|
||||
return False
|
||||
return str(v).strip().lower() in ("1", "true", "yes", "on")
|
||||
|
||||
@field_validator("mock_sms_login_enabled", mode="before")
|
||||
@classmethod
|
||||
def _coerce_mock_sms_login_enabled(cls, v: object) -> bool:
|
||||
if isinstance(v, bool):
|
||||
return v
|
||||
if v is None:
|
||||
return False
|
||||
return str(v).strip().lower() in ("1", "true", "yes", "on")
|
||||
|
||||
@field_validator("log_agent_verbose", mode="before")
|
||||
@classmethod
|
||||
def _coerce_log_agent_verbose(cls, v: object) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user