Skip to content

Commit 96b08d0

Browse files
Merge pull request #7470 from MicrosoftDocs/main
Auto Publish – main to live - 2025-10-03 22:05 UTC
2 parents 535eeb6 + 8b0b3ab commit 96b08d0

File tree

4 files changed

+99
-58
lines changed

4 files changed

+99
-58
lines changed

articles/ai-foundry/how-to/develop/cloud-evaluation.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,18 @@ print("Versioned evaluator id:", registered_evaluator.id)
243243

244244
After you log your custom evaluator to your Azure AI project, you can view it in your [Evaluator library](../evaluate-generative-ai-app.md#view-and-manage-the-evaluators-in-the-evaluator-library) under the **Evaluation** tab of your Azure AI project.
245245

246+
### Troubleshooting: Job Stuck in Running State
247+
248+
If your evaluation job remains in the **Running** state for an extended period when using Azure AI Foundry Project or Hub, this may be because the Azure OpenAI model you selected does not have enough capacity.
249+
250+
**Resolution**
251+
252+
Cancel the current evaluation job.
253+
254+
Increase the model capacity to handle larger input data.
255+
256+
Re-run the evaluation.
257+
246258
## Related content
247259

248260
- [Evaluate your generative AI applications locally](./evaluate-sdk.md)

articles/ai-foundry/openai/includes/language-overview/python.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,29 @@ pip install openai --upgrade
3232

3333
## Authentication
3434

35+
# [Microsoft Entra ID](#tab/python-secure)
36+
37+
```python
38+
from openai import OpenAI
39+
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
40+
41+
token_provider = get_bearer_token_provider(
42+
DefaultAzureCredential(), "https://cognitiveservices.azure.com/.default"
43+
)
44+
45+
client = OpenAI(
46+
base_url = "https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/",
47+
api_key = token_provider
48+
)
49+
50+
response = client.responses.create(
51+
model="gpt-4.1-nano",
52+
input= "This is a test"
53+
)
54+
55+
print(response.model_dump_json(indent=2))
56+
```
57+
3558
# [API Key](#tab/python-key)
3659

3760
[!INCLUDE [Azure key vault](~/reusable-content/ce-skilling/azure/includes/ai-services/security/azure-key-vault.md)]
@@ -48,10 +71,6 @@ client = OpenAI(
4871
```
4972

5073

51-
# [Microsoft Entra ID](#tab/python-secure)
52-
53-
v1 support for Entra ID authentication is coming soon. To learn more, see the [API version lifecycle guide](../../api-version-lifecycle.md).
54-
5574
---
5675

5776
## Chat

0 commit comments

Comments
 (0)