feat/ internal eval平台现支持实机联调。 1. 显示当前本地数据库里登录用户的历史聊天,已生成的回忆录。支持在网页直接对话,不依赖手机app。

This commit is contained in:
Kevin
2026-04-20 11:58:32 +08:00
parent 1194e1ed71
commit e848f26354
18 changed files with 1339 additions and 12 deletions

View File

@@ -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: