Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/packages/azure-ai/agent_framework_azure_ai/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ async def prepare_options(
return run_options

async def initialize_client(self) -> None:
"""Initialize OpenAI client asynchronously."""
self.client = await self.project_client.get_openai_client() # type: ignore
"""Initialize OpenAI client."""
self.client = self.project_client.get_openai_client() # type: ignore

def _update_agent_name(self, agent_name: str | None) -> None:
"""Update the agent name in the chat client.
Expand Down
2 changes: 1 addition & 1 deletion python/packages/azure-ai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [
]
dependencies = [
"agent-framework-core",
"azure-ai-projects >= 2.0.0b1",
"azure-ai-projects >= 2.0.0b2",
"azure-ai-agents == 1.2.0b5",
"aiohttp",
]
Expand Down
2 changes: 1 addition & 1 deletion python/packages/azure-ai/tests/test_azure_ai_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ async def test_azure_ai_client_initialize_client(mock_project_client: MagicMock)
client = create_test_azure_ai_client(mock_project_client)

mock_openai_client = MagicMock()
mock_project_client.get_openai_client = AsyncMock(return_value=mock_openai_client)
mock_project_client.get_openai_client = MagicMock(return_value=mock_openai_client)

await client.initialize_client()

Expand Down
Loading