Skip to content

Commit 7aac9b4

Browse files
remove unused WorkflowEvent import from orchestrator.py
1 parent d7ecc62 commit 7aac9b4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/backend/orchestrator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
from agent_framework import (
2525
Agent,
2626
Message,
27-
WorkflowEvent,
2827
WorkflowEventType,
29-
WorkflowRunState,
3028
)
3129
from agent_framework.orchestrations import HandoffBuilder, HandoffAgentUserRequest
3230
from 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")

0 commit comments

Comments
 (0)