diff --git a/src/promptflow-evals/promptflow/evals/_http_utils.py b/src/promptflow-evals/promptflow/evals/_http_utils.py index 0c128ab0d41..b02eb8507e2 100644 --- a/src/promptflow-evals/promptflow/evals/_http_utils.py +++ b/src/promptflow-evals/promptflow/evals/_http_utils.py @@ -21,8 +21,8 @@ UserAgentPolicy, ) from azure.core.pipeline.transport import ( # pylint: disable=non-abstract-transport-import,no-name-in-module - AioHttpTransport, AsyncHttpTransport, + AsyncioRequestsTransport, HttpTransport, RequestsTransport, ) @@ -294,7 +294,7 @@ def __init__( # AioHttpTransport normally should not be imported outside of azure.core, since transports # are meant to be user configurable. # AioHttpTransport is only used in this file as the default transport when not user specified. - transport=transport or AioHttpTransport(**kwargs), + transport=transport or AsyncioRequestsTransport(**kwargs), policies=[ config.headers_policy, config.user_agent_policy,