feat: add voice session confirmation guardrails

This commit is contained in:
2026-04-20 12:29:14 +08:00
parent 4ecf0c09c0
commit dbb512719d
8 changed files with 406 additions and 50 deletions

View File

@@ -82,6 +82,14 @@ class Settings(BaseSettings):
"zh",
description="Preferred language hint for voice transcription",
)
voice_turn_low_transcript_confidence: float = Field(
0.65,
description="Prompt for confirmation when transcript confidence falls below this threshold",
)
voice_turn_low_intent_confidence: float = Field(
0.70,
description="Prompt for confirmation when intent confidence falls below this threshold",
)
voice_turn_max_upload_bytes: int = Field(
5 * 1024 * 1024,
description="Maximum accepted upload size in bytes for one voice turn audio file",