feat(voice): implement local S2S retained history and provider selection
Add pinned CPU engine dependencies, retained interrupted-response history, provider admission, offline evaluation and isolated browser tooling. Record Phase 2 acceptance and Phase 3/4 preparation, bounded paid-test accounting and interruption incident findings. Human interruption acceptance, paired OpenAI evaluation and rollback remain pending.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""K01/K02 and read-only F01, with backend-owned organization scope."""
|
||||
from uuid import UUID
|
||||
from typing import Literal
|
||||
from app.infrastructure.blocking import blocking
|
||||
from fastapi import APIRouter, Depends, Request
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
@@ -64,7 +65,14 @@ async def replace(request: Request, user=Depends(require_admin), engine=Depends(
|
||||
description='Query assistant capabilities, upload format limits, active policies, and live voice availability.',
|
||||
)
|
||||
def configuration(user=Depends(get_current_user), engine=Depends(get_engine),
|
||||
ingest=Depends(get_ingestion_settings), voice=Depends(get_voice_settings)):
|
||||
ingest=Depends(get_ingestion_settings), voice=Depends(get_voice_settings),
|
||||
provider: Literal['openai', 'local_s2s', 'gemini'] | None = None):
|
||||
if provider is not None:
|
||||
from app.modules.voice.configuration import select_voice_provider
|
||||
try:
|
||||
voice = select_voice_provider(voice, provider)
|
||||
except ValueError as exc:
|
||||
raise error(str(exc)) from None
|
||||
try:
|
||||
with transaction(engine) as conn:
|
||||
_, settings = authority(conn, user.id)
|
||||
|
||||
Reference in New Issue
Block a user