Files
life-echo/api/tests/test_default_toml_legacy_parity.py
Kevin 22d282dc01 feat(api): use Tencent 16k_zh_large ASR and remove local Whisper
Standardize ASR on Tencent's dialect-capable engine across all environments,
drop faster-whisper from dependencies and deployment images, and add an
expo-sqlite iOS vendor sync plus pod install in prebuild to prevent native
build failures after npm install.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-25 10:21:41 +08:00

23 lines
800 B
Python

"""Guard: config/default.toml defaults stay aligned with pre-TOML Settings."""
from app.core.app_config_loader import default_config_dir, load_app_config
def test_default_toml_matches_legacy_settings_defaults() -> None:
cfg = load_app_config("development", config_dir=default_config_dir())
assert cfg.chat.interview_persona == "default"
assert cfg.chat.interview_temperature == 0.93
assert cfg.chat.memory_top_k == 8
assert cfg.chat.memory_evidence_max_chars == 4096
assert cfg.chat.reply_planner_llm_enabled is False
assert cfg.memoir.oral_normalize_mode == "rules"
assert cfg.story.image_min_body_chars == 400
assert cfg.asr.provider == "tencent"
assert cfg.asr.engine_type == "16k_zh_large"
assert cfg.misc.tencent_sms_template_param_count == 2