From c8fc1e6deeff768560b7a25f97028546d5b462be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Fri, 21 Jun 2024 18:08:45 +0200 Subject: [PATCH] fix --- .../langflow/components/embeddings/AstraVectorize.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/backend/base/langflow/components/embeddings/AstraVectorize.py b/src/backend/base/langflow/components/embeddings/AstraVectorize.py index 812dd6525..55257be18 100644 --- a/src/backend/base/langflow/components/embeddings/AstraVectorize.py +++ b/src/backend/base/langflow/components/embeddings/AstraVectorize.py @@ -32,7 +32,7 @@ from base.langflow.template.field.base import Output from langflow.custom import Component -from langflow.inputs.inputs import DataInput, IntInput, TextInput, DictInput +from langflow.inputs.inputs import DataInput, IntInput, TextInput, DictInput, SecretStrInput from langflow.schema import Data from langflow.template.field.base import Output from langflow.utils.util import build_loader_repr_from_data, unescape_string @@ -61,13 +61,7 @@ class AstraVectorize(Component): info='Authentication parameters. Use the Astra Portal to add the embedding provider integration to your Astra organization.', is_list=True ), - DictInput( - name="authentication2", - display_name="Authentication", - info='Authentication parameters. Use the Astra Portal to add the embedding provider integration to your Astra organization.', - is_list=False - ), - TextInput( + SecretStrInput( name="provider_api_key", display_name="Provider API Key to authenticate to the external service", info='An alternative to the Astra Authentication that let you use directly the API key of the provider.',