mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Small fix in Foundry chat client and samples (#407)
This commit is contained in:
committed by
GitHub
Unverified
parent
4007785b66
commit
95cb20ca40
@@ -165,6 +165,7 @@ class FoundryChatClient(ChatClientBase):
|
||||
if not async_ad_credential:
|
||||
raise ServiceInitializationError("Azure AD credential is required when client is not provided.")
|
||||
client = AIProjectClient(endpoint=foundry_settings.project_endpoint, credential=async_ad_credential)
|
||||
should_close_client = True
|
||||
|
||||
super().__init__(
|
||||
client=client, # type: ignore[reportCallIssue]
|
||||
|
||||
Reference in New Issue
Block a user