diff --git a/backend/app/core/providers.py b/backend/app/core/providers.py index 63a98c102..743ee1883 100644 --- a/backend/app/core/providers.py +++ b/backend/app/core/providers.py @@ -52,12 +52,8 @@ class ProviderConfig: Provider.GOOGLE: ProviderConfig( required_fields=[ "api_key", - "project_id", - "location", - "sa_key", - "gcs_bucket", ], - sensitive_fields=["api_key", "sa_key"], + sensitive_fields=["api_key"], ), Provider.WEBHOOK_SECRET: ProviderConfig( required_fields=["webhook_secret"], sensitive_fields=["webhook_secret"] diff --git a/backend/app/services/llm/mappers.py b/backend/app/services/llm/mappers.py index ab6d70fe4..7e8f04624 100644 --- a/backend/app/services/llm/mappers.py +++ b/backend/app/services/llm/mappers.py @@ -592,11 +592,6 @@ def transform_kaapi_config_to_native( ) if kaapi_config.provider == Provider.GOOGLE: - if kaapi_config.type not in (CompletionType.STT, CompletionType.TTS): - raise ValueError( - f"google provider does not support completion type '{kaapi_config.type}'. " - "Use the 'google-aistudio' provider for text completions." - ) # Kaapi STT/TTS param shape is identical to Google's; reuse the Google mapper. mapped_params, warnings = map_kaapi_to_google_params( kaapi_config.params, kaapi_config.type