File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424from agent_framework import (
2525 Agent ,
2626 Message ,
27- WorkflowEvent ,
2827 WorkflowEventType ,
29- WorkflowRunState ,
3028)
3129from agent_framework .orchestrations import HandoffBuilder , HandoffAgentUserRequest
3230from agent_framework .openai import OpenAIChatCompletionClient
@@ -541,7 +539,8 @@ def _get_chat_client(self):
541539 # Store the project client for image generation
542540 self ._project_client = project_client
543541
544- # For chat completions, use the direct Azure OpenAI endpoint
542+ # The Foundry project uses Azure OpenAI under the hood, and we need the direct endpoint
543+ # to properly authenticate with Cognitive Services token
545544 azure_endpoint = app_settings .azure_openai .endpoint
546545 if not azure_endpoint :
547546 raise ValueError ("AZURE_OPENAI_ENDPOINT is required for Foundry mode chat completions" )
You can’t perform that action at this time.
0 commit comments