Skip to content

Commit acfde07

Browse files
committed
image model needs to passed into tool definition
1 parent c97d0d8 commit acfde07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/ai/azure-ai-projects/tests/agents/tools/test_agent_image_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_agent_image_generation(self, **kwargs):
7373
definition=PromptAgentDefinition(
7474
model=model,
7575
instructions="Generate images based on user prompts",
76-
tools=[ImageGenTool(quality="low", size="1024x1024")],
76+
tools=[ImageGenTool(quality="low", size="1024x1024", model=image_model_deployment)],
7777
),
7878
description="Agent for testing image generation.",
7979
)

0 commit comments

Comments
 (0)