-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't workingopenapiIssues related to the OpenAPI function importerIssues related to the OpenAPI function importerpythonPull requests for the Python Semantic KernelPull requests for the Python Semantic Kernel
Description
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 workingSomething isn't workingopenapiIssues related to the OpenAPI function importerIssues related to the OpenAPI function importerpythonPull requests for the Python Semantic KernelPull requests for the Python Semantic Kernel
Type
Projects
Status
No status