diff --git a/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_image_generation.py b/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_image_generation.py index 3fd58f5aa926..7ee649c67fb2 100644 --- a/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_image_generation.py +++ b/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_image_generation.py @@ -29,14 +29,14 @@ page of your Microsoft Foundry portal. 2) AZURE_AI_MODEL_DEPLOYMENT_NAME - The deployment name of the chat model (e.g., gpt-4o, gpt-4o-mini, gpt-5o, gpt-5o-mini) used by the agent for understanding and responding to prompts. This is NOT the image generation model. - 3) IMAGE_GENERATION_MODEL_DEPLOYMENT_NAME - The deployment name of the image generation model (e.g., gpt-image-1-mini) + 3) IMAGE_GENERATION_MODEL_DEPLOYMENT_NAME - The deployment name of the image generation model (e.g., gpt-image-1) used by the ImageGenTool. NOTE: - - Image generation requires a separate "gpt-image-1-mini" deployment which is specified when constructing + - Image generation requires a separate "gpt-image-1" deployment which is specified when constructing the `ImageGenTool`, as well as providing it in the `x-ms-oai-image-generation-deployment` header when calling `.responses.create`. - - AZURE_AI_MODEL_DEPLOYMENT_NAME should be set to your chat model (e.g., gpt-4o), NOT "gpt-image-1-mini". + - AZURE_AI_MODEL_DEPLOYMENT_NAME should be set to your chat model (e.g., gpt-4o), NOT "gpt-image-1". - The generated image will be saved as "microsoft.png" in the OS temporary directory. """ @@ -62,7 +62,7 @@ # [START tool_declaration] tool = ImageGenTool( # type: ignore[call-overload] - model=image_generation_model, # Model such as "gpt-image-1-mini" # type: ignore + model=image_generation_model, # Model such as "gpt-image-1" # type: ignore quality="low", size="1024x1024", ) diff --git a/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_image_generation_async.py b/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_image_generation_async.py index 0ad945453783..de7ec9707c95 100644 --- a/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_image_generation_async.py +++ b/sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_image_generation_async.py @@ -29,14 +29,14 @@ page of your Microsoft Foundry portal. 2) AZURE_AI_MODEL_DEPLOYMENT_NAME - The deployment name of the AI model, as found under the "Name" column in the "Models + endpoints" tab in your Microsoft Foundry project. - 3) IMAGE_GENERATION_MODEL_DEPLOYMENT_NAME - The deployment name of the image generation model (e.g., gpt-image-1-mini) + 3) IMAGE_GENERATION_MODEL_DEPLOYMENT_NAME - The deployment name of the image generation model (e.g., gpt-image-1) used by the ImageGenTool. NOTE: - - Image generation requires a separate "gpt-image-1-mini" deployment which is specified when constructing + - Image generation requires a separate "gpt-image-1" deployment which is specified when constructing the `ImageGenTool`, as well as providing it in the `x-ms-oai-image-generation-deployment` header when calling `.responses.create`. - - AZURE_AI_MODEL_DEPLOYMENT_NAME should be set to your chat model (e.g., gpt-4o), NOT "gpt-image-1-mini". + - AZURE_AI_MODEL_DEPLOYMENT_NAME should be set to your chat model (e.g., gpt-4o), NOT "gpt-image-1". - The generated image will be saved as "microsoft.png" in the OS temporary directory. """