chore: render initial and gathered context

This commit is contained in:
Abhishek Kumar 2025-12-31 22:02:50 +05:30
parent 3afae6cf09
commit cc2d3e70d2
3 changed files with 51 additions and 5 deletions

View file

@ -284,7 +284,7 @@ TTSConfig = Annotated[
###################################################### STT ########################################################################
DEEPGRAM_STT_MODELS = ["nova-3-general"]
DEEPGRAM_STT_MODELS = ["nova-2", "nova-3-general"]
DEEPGRAM_LANGUAGES = [
"multi",
"en",

View file

@ -1,6 +1,7 @@
from typing import TYPE_CHECKING
from fastapi import HTTPException
from loguru import logger
from api.constants import MPS_API_URL
from api.services.configuration.registry import ServiceProviders
@ -32,8 +33,12 @@ def create_stt_service(user_config):
# Use language from user config, defaulting to "multi" for multilingual support
language = getattr(user_config.stt, "language", None) or "multi"
live_options = LiveOptions(
language=language, profanity_filter=False, endpointing=100
language=language,
profanity_filter=False,
endpointing=100,
model=user_config.stt.model,
)
logger.debug(f"Using DeepGram Model - {user_config.stt.model}")
return DeepgramSTTService(
live_options=live_options,
api_key=user_config.stt.api_key,