diff --git a/python/samples/02-agents/multimodal_input/README.md b/python/samples/02-agents/multimodal_input/README.md index a96df45fddb..f6cb1813675 100644 --- a/python/samples/02-agents/multimodal_input/README.md +++ b/python/samples/02-agents/multimodal_input/README.md @@ -29,15 +29,12 @@ Set the following environment variables before running the examples: **For OpenAI:** - `OPENAI_API_KEY`: Your OpenAI API key -**For Azure OpenAI:** +**For the Azure samples (`azure_chat_multimodal.py` and `azure_responses_multimodal.py`, which use `FoundryChatClient`):** -- `AZURE_OPENAI_ENDPOINT`: Your Azure OpenAI endpoint -- `AZURE_OPENAI_MODEL`: The name of your Azure OpenAI chat model deployment -- `AZURE_OPENAI_MODEL`: The name of your Azure OpenAI responses model deployment +- `FOUNDRY_PROJECT_ENDPOINT`: Your Microsoft Foundry project endpoint +- `FOUNDRY_MODEL`: The name of your model deployment -Optionally for Azure OpenAI: -- `AZURE_OPENAI_API_VERSION`: The API version to use (default is `2024-10-21`) -- `AZURE_OPENAI_API_KEY`: Your Azure OpenAI API key (if not using `AzureCliCredential`) +These samples authenticate with `AzureCliCredential`, so run `az login` first. **Note:** You can also provide configuration directly in code instead of using environment variables: ```python diff --git a/python/samples/02-agents/multimodal_input/azure_chat_multimodal.py b/python/samples/02-agents/multimodal_input/azure_chat_multimodal.py index 2d7c5c9a208..8d4b0ebf0a2 100644 --- a/python/samples/02-agents/multimodal_input/azure_chat_multimodal.py +++ b/python/samples/02-agents/multimodal_input/azure_chat_multimodal.py @@ -21,7 +21,7 @@ def create_sample_image() -> str: async def test_image() -> None: """Test image analysis with Azure OpenAI.""" # For authentication, run `az login` command in terminal or replace AzureCliCredential with preferred - # authentication option. Requires AZURE_OPENAI_ENDPOINT and FOUNDRY_MODEL + # authentication option. Requires FOUNDRY_PROJECT_ENDPOINT and FOUNDRY_MODEL # environment variables to be set. # Alternatively, you can pass model explicitly: # client = FoundryChatClient(credential=AzureCliCredential(), model="your-deployment-name") diff --git a/python/samples/02-agents/multimodal_input/azure_responses_multimodal.py b/python/samples/02-agents/multimodal_input/azure_responses_multimodal.py index ec0a684c47d..97a4cf6a6ad 100644 --- a/python/samples/02-agents/multimodal_input/azure_responses_multimodal.py +++ b/python/samples/02-agents/multimodal_input/azure_responses_multimodal.py @@ -30,7 +30,7 @@ def create_sample_image() -> str: async def test_image() -> None: """Test image analysis with Azure OpenAI Responses API.""" # For authentication, run `az login` command in terminal or replace AzureCliCredential with preferred - # authentication option. Requires AZURE_OPENAI_ENDPOINT and FOUNDRY_MODEL + # authentication option. Requires FOUNDRY_PROJECT_ENDPOINT and FOUNDRY_MODEL # environment variables to be set. # Alternatively, you can pass model explicitly: # client = FoundryChatClient(credential=AzureCliCredential(), model="your-deployment-name")