Replace CreateRecTask polling with recording-file flash API, add TENCENT_APP_ID, remove server-side pydub slicing, and log ASR recognition text at INFO in development. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
851 B
Python
24 lines
851 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.asr.request_timeout_seconds == 60.0
|
|
|
|
assert cfg.misc.tencent_sms_template_param_count == 2
|