diff --git a/src/backend/langflow/components/llms/BaiduQianfanChatEndpoints.py b/src/backend/langflow/components/llms/BaiduQianfanChatEndpoints.py index 724b70699..1ea679b47 100644 --- a/src/backend/langflow/components/llms/BaiduQianfanChatEndpoints.py +++ b/src/backend/langflow/components/llms/BaiduQianfanChatEndpoints.py @@ -78,7 +78,7 @@ class QianfanChatEndpointComponent(CustomComponent): endpoint: Optional[str] = None, ) -> BaseLLM: try: - output = QianfanChatEndpoint( + output = QianfanChatEndpoint( # type: ignore model=model, qianfan_ak=qianfan_ak, qianfan_sk=qianfan_sk, @@ -89,4 +89,4 @@ class QianfanChatEndpointComponent(CustomComponent): ) except Exception as e: raise ValueError("Could not connect to Baidu Qianfan API.") from e - return output + return output # type: ignore diff --git a/src/backend/langflow/components/llms/BaiduQianfanLLMEndpoints.py b/src/backend/langflow/components/llms/BaiduQianfanLLMEndpoints.py index 8e5e2bda6..786c4516b 100644 --- a/src/backend/langflow/components/llms/BaiduQianfanLLMEndpoints.py +++ b/src/backend/langflow/components/llms/BaiduQianfanLLMEndpoints.py @@ -78,7 +78,7 @@ class QianfanLLMEndpointComponent(CustomComponent): endpoint: Optional[str] = None, ) -> BaseLLM: try: - output = QianfanLLMEndpoint( + output = QianfanLLMEndpoint( # type: ignore model=model, qianfan_ak=qianfan_ak, qianfan_sk=qianfan_sk, @@ -89,4 +89,4 @@ class QianfanLLMEndpointComponent(CustomComponent): ) except Exception as e: raise ValueError("Could not connect to Baidu Qianfan API.") from e - return output + return output # type: ignore