From a8b584cdc4d42d4d2bbfade9fb2a2e179d46e998 Mon Sep 17 00:00:00 2001 From: Hiroshi Fujita Date: Sun, 19 Jan 2025 12:27:57 +0000 Subject: [PATCH] feat: add model credential schema for Google provider --- .../model_providers/google/google.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/api/core/model_runtime/model_providers/google/google.yaml b/api/core/model_runtime/model_providers/google/google.yaml index 69d4e371c462fa..fe96cd175460a3 100644 --- a/api/core/model_runtime/model_providers/google/google.yaml +++ b/api/core/model_runtime/model_providers/google/google.yaml @@ -19,6 +19,19 @@ supported_model_types: - llm configurate_methods: - predefined-model +model_credential_schema: + model: + label: + en_US: Model Name + credential_form_schemas: + - variable: google_api_key + label: + en_US: API Key + type: secret-input + required: true + placeholder: + zh_Hans: 在此输入您的 API Key + en_US: Enter your API Key provider_credential_schema: credential_form_schemas: - variable: google_api_key