You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Project ID (Optional - will be generated if not provided)
81
-
PROJECT_ID=your_project_id_here
82
-
MODEL_DEPLOYMENT_NAME=gpt-4o
83
-
```
84
-
85
-
86
73
1. Make sure to sign in using the CLI `az login` (or `az login --use-device-code`) command to authenticate before running your Java scripts.
87
74
1. Download [POM.XML](https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/microsoft/java/mslearn-resources/quickstart/pom.xml) to your Java IDE.
88
75
@@ -158,6 +145,14 @@ Substitute your endpoint for the `endpoint` in this code:
158
145
159
146
# [Java (preview)](#tab/java)
160
147
148
+
Set these environment variables:
149
+
150
+
- **AZURE_ENDPOINT**: Required. The base endpoint for your Azure AI service.
151
+
- AZURE_AI_API_KEY: Optional. The API key for authentication (falls back to DefaultAzureCredential if not provided).
152
+
- AZURE_MODEL_DEPLOYMENT_NAME: Optional. The model deployment name (defaults to "phi-4").
153
+
- AZURE_MODEL_API_PATH: Optional. The API path segment (defaults to "deployments").
154
+
- CHAT_PROMPT: Optional. The prompt to send to the model (uses a default if not provided).
0 commit comments