added voice functionality and increased avatar size
All checks were successful
Deploy FluentGerman.ai / deploy (push) Successful in 53s
All checks were successful
Deploy FluentGerman.ai / deploy (push) Successful in 53s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user