From a7bf64a02b8de226d7d28bd42f9e96cec0b94edc Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 25 Nov 2025 17:11:04 +0530 Subject: [PATCH] feat: add llm models in Dograh (#64) --- api/routes/public_embed.py | 7 +++++-- api/services/configuration/registry.py | 5 ++++- api/services/pipecat/service_factory.py | 4 +--- pipecat | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/api/routes/public_embed.py b/api/routes/public_embed.py index 5d6481c..49ec1bc 100644 --- a/api/routes/public_embed.py +++ b/api/routes/public_embed.py @@ -93,8 +93,11 @@ def validate_origin(origin: str, allowed_domains: list) -> bool: # Check both www and non-www versions allowed_variants = normalize_www(allowed) # If any variant of domain matches any variant of allowed, it's valid - if any(dv in allowed_variants or av in domain_variants - for dv in domain_variants for av in allowed_variants): + if any( + dv in allowed_variants or av in domain_variants + for dv in domain_variants + for av in allowed_variants + ): return True return False diff --git a/api/services/configuration/registry.py b/api/services/configuration/registry.py index 47ba4f3..11c8073 100644 --- a/api/services/configuration/registry.py +++ b/api/services/configuration/registry.py @@ -157,8 +157,11 @@ class AzureLLMService(BaseLLMConfiguration): # Dograh LLM Service class DograhLLMModel(str, Enum): DEFAULT = "default" - FAST = "fast" ACCURATE = "accurate" + FAST = "fast" + LITE = "lite" + ZEN = "zen" + ZEN_LITE = "zen_lite" @register_llm diff --git a/api/services/pipecat/service_factory.py b/api/services/pipecat/service_factory.py index 07b4cb1..13cea2d 100644 --- a/api/services/pipecat/service_factory.py +++ b/api/services/pipecat/service_factory.py @@ -26,9 +26,7 @@ def create_stt_service(user_config): """Create and return appropriate STT service based on user configuration""" if user_config.stt.provider == ServiceProviders.DEEPGRAM.value: live_options = LiveOptions( - language="multi", - profanity_filter=False, - endpointing=100 + language="multi", profanity_filter=False, endpointing=100 ) return DeepgramSTTService( live_options=live_options, diff --git a/pipecat b/pipecat index 5365365..34a4e01 160000 --- a/pipecat +++ b/pipecat @@ -1 +1 @@ -Subproject commit 53653657d851e8052f9cc5b73b6f675a44c86fe7 +Subproject commit 34a4e018214ca4df46be7fda90872333f6e074e9