added voice functionality and increased avatar size
All checks were successful
Deploy FluentGerman.ai / deploy (push) Successful in 53s

This commit is contained in:
2026-02-18 10:11:13 +01:00
parent 6df7b17261
commit be366777d4
7 changed files with 59 additions and 11 deletions

View File

@@ -20,11 +20,10 @@ async def voice_config(user: User = Depends(get_current_user)):
"""Return current voice mode so frontend knows whether to use browser or API."""
settings = get_settings()
# API STT (Whisper) works with OpenAI-compatible providers
api_available = bool(
settings.voice_mode == "api"
and settings.llm_api_key
and settings.llm_provider in ("openai",)
)
# Check if we have a dedicated voice key OR a generic LLM key for OpenAI
has_key = bool(settings.openai_api_key or (settings.llm_api_key and settings.llm_provider == "openai"))
api_available = bool(settings.voice_mode == "api" and has_key)
return VoiceConfigOut(
voice_mode=settings.voice_mode,
voice_api_available=api_available,