Skip to content

Commit

Permalink
Update client classes
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Apr 16, 2024
1 parent bcd1a8c commit c0a9024
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions haystack/components/connectors/openapi_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit c0a9024

Please sign in to comment.