feat(backend): integrate document deletion and grounded speech providers

Enable replay-safe document deletion and public deployment model identifiers with the forward voice-model schema revision.

Add GapGPT dialogue and ElevenLabs speech routing, strict extractive grounding, ten-source retrieval and regression coverage.

Validation: 199 targeted provider-free tests passed. The full provider-free run stalled and was interrupted; PostgreSQL acceptance was not run because TEST_DATABASE_URL is unset.
This commit is contained in:
amirhosein mazaheri
2026-10-20 09:00:37 +03:30
parent 2bffb9476a
commit 42400495af
27 changed files with 1003 additions and 28 deletions
+18
View File
@@ -176,3 +176,21 @@ LOCAL_S2S_TOKEN=
# LOCAL_S2S_NLTK_SOURCE=<local-unpacked-nltk-data>
# LOCAL_S2S_ASSET_MANIFEST_SOURCE=<local-assets.json>
# LOCAL_S2S_ASSET_MANIFEST_SHA256=<reviewed-manifest-sha256>
# Local S2S components only: split (existing OpenRouter/OpenAI routes) or gapgpt.
# Set LOCAL_S2S_COMPONENT_PROVIDER in both API and engine for frozen profile identity.
LOCAL_S2S_COMPONENT_PROVIDER=split
GAPGPT_API_KEY=
# Engine-only alternative to GAPGPT_API_KEY; never mount the key into the browser/API.
# GAPGPT_API_KEY_FILE=/run/secrets/gapgpt_api_key
# Optional engine-only TTS override. STT/LLM keep LOCAL_S2S_COMPONENT_PROVIDER.
LOCAL_S2S_TTS_PROVIDER=upstream
ELEVENLABS_API_KEY=
# ELEVENLABS_API_KEY_FILE=/run/secrets/elevenlabs_api_key
# Optional engine-only STT override; uses the same ELEVENLABS_API_KEY(_FILE).
LOCAL_S2S_STT_PROVIDER=upstream
# Local engine: validate extractive current-turn answers before TTS.
LOCAL_S2S_STRICT_GROUNDING=false