Skip to content

Python: Bug: add_plugin_from_openapi() has hardcoded 5 seconds timeout #12373

@GitAashishG

Description

@GitAashishG

When adding a plugin using add_plugin_from_openapi(), the timeout is hardcoded to 5-seconds.

This can be side-stepped by creating custom client for now:

            custom_client = httpx.AsyncClient(timeout=custom_timeout)

            # Create execution settings with the custom HTTP client
            execution_settings = OpenAPIFunctionExecutionParameters(
                http_client=custom_client
            )

            self.kernel.add_plugin_from_openapi(
                plugin_name=plugin_name,
                openapi_document_path=openapi_url,
                description=description,
                execution_settings=execution_settings,
     )

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopenapiIssues related to the OpenAPI function importerpythonPull requests for the Python Semantic Kernel

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions