fix: correct issue with change api key to be of type str (#5716)

* change api key to be of type str

* change SecretStr type to new way import

* revert package-lock changes

- Removed license information from several dependencies in package-lock.json for cleaner output.
- Updated versions of various dependencies, including @babel packages and chakra-ui components, to their latest compatible versions.
- Ensured consistency in dependency versions across the project to maintain stability and compatibility.

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Nguyễn Hưng 2025-01-20 18:57:47 +07:00 committed by GitHub
commit bf57f058c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,7 @@ from urllib.parse import urlparse
import requests
from langchain_community.embeddings.huggingface import HuggingFaceInferenceAPIEmbeddings
from pydantic.v1.types import SecretStr
from pydantic import SecretStr
from tenacity import retry, stop_after_attempt, wait_fixed
from langflow.base.embeddings.model import LCEmbeddingsModel