Skip to content

Python: [Bug]: Inconsistent API - AzureOpenAIResponsesClient only allows sync TokenCredential #3449

@savvaki

Description

@savvaki

Description

Clients such as AzureAIClient accept an AsyncTokenCredential, however the AzureOpenAIResponsesClient only accepts a synchronous TokenCredential.

Code Sample

from agent_framework.azure import AzureOpenAIResponsesClient
from azure.identity.aio import DefaultAzureCredential # <-- Async credential

async with DefaultAzureCredential() as credential:
    AzureOpenAIResponsesClient(
            credential=credential, # <--- Not supported
            base_url="",
            deployment_name="",
            )

Error Messages / Stack Traces

Package Versions

1.0.0b260123

Python Version

3.13.7

Additional Context

No response

Metadata

Metadata

Labels

bugSomething isn't workingmodel clientsIssues related to the model client implementationspythonv1.0Features being tracked for the version 1.0 GA

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions