Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions backend/app/core/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
5 changes: 0 additions & 5 deletions backend/app/services/llm/mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading