From c0a90241fd07ff67f3ed062cae5edc4354865ca0 Mon Sep 17 00:00:00 2001 From: Vladimir Blagojevic Date: Tue, 16 Apr 2024 14:48:26 +0100 Subject: [PATCH] Update client classes --- haystack/components/connectors/openapi_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/haystack/components/connectors/openapi_service.py b/haystack/components/connectors/openapi_service.py index bab0291c65..3d8156b4c8 100644 --- a/haystack/components/connectors/openapi_service.py +++ b/haystack/components/connectors/openapi_service.py @@ -8,7 +8,7 @@ logger = logging.getLogger(__name__) with LazyImport("Run 'pip install openapi-service-client'") as openapi_imports: - from openapi_service_client import OpenAPIServiceClient, OpenAPIServiceClientConfigurationBuilder + from openapi_service_client import ClientConfigurationBuilder, OpenAPIServiceClient @component @@ -101,8 +101,8 @@ def run( function_invocation_payloads = self._parse_message(last_message) - # instantiate the OpenAPI service for the given specification - builder = OpenAPIServiceClientConfigurationBuilder() + # instantiate the OpenAPIServiceClient service for the given specification + builder = ClientConfigurationBuilder() config_openapi = builder.with_openapi_spec(service_openapi_spec).with_credentials(service_credentials).build() openapi_service = OpenAPIServiceClient(config_openapi)