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
model="gpt-4.1-nano", # Replace with your model deployment name
111
-
input="This is a test."
112
-
)
113
-
114
-
print(response.model_dump_json(indent=2))
78
+
client = OpenAI()
115
79
```
116
80
117
-
### Next generation API
81
+
**Microsoft Entra ID**:
118
82
119
83
> [!IMPORTANT]
120
84
> Handling automatic token refresh was previously handled through use of the `AzureOpenAI()` client. The v1 API removes this dependency, by adding automatic token refresh support to the `OpenAI()` client.
-`base_url` passes the Azure OpenAI endpoint and `/openai/v1` is appended to the endpoint address.
144
108
-`api_key` parameter is set to `token_provider`, enabling automatic retrieval and refresh of an authentication token instead of using a static API key.
145
109
146
-
# [REST](#tab/rest)
110
+
# [C#](#tab/dotnet)
111
+
112
+
### v1 API
147
113
148
-
### Last generation API
114
+
[C# v1 examples](./supported-languages.md)
149
115
150
116
**API Key**:
151
117
152
-
```bash
153
-
curl -X POST https://YOUR-RESOURCE-NAME.openai.azure.com/openai/responses?api-version=2025-04-01-preview \
Copy file name to clipboardExpand all lines: articles/ai-foundry/openai/azure-government.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,27 @@ To request quota increases for these models, submit a request at [https://aka.ms
56
56
57
57
<br>
58
58
59
+
### Model Retirements
60
+
In some cases, models are retired in Azure Governmen ahead of dates in the commercial cloud. General information on model retirement policies, dates, and other details can be found at [Azure OpenAI in Azure AI Foundry model deprecations and retirements](/azure/ai-foundry/openai/concepts/model-retirements). The following shows model retirement differences in Azure Government.
61
+
62
+
| Model | Version | Azure Government Status | Public Retirement date |
|`gpt-35-turbo`| 1106 | Retired | November 11, 2025 |
65
+
|`gpt-4`| turbo-2024-04-09 | Retired | November 11, 2025 |
66
+
67
+
<br>
68
+
69
+
### Deafault Model Versions
70
+
In some cases, new model versions are designated as default in Azure Governmen ahead of dates in the commercial cloud. General information on model upgrades can be found at [Working with Azure OpenAI models](/azure/ai-foundry/openai/how-to/working-with-models?tabs=powershell&branch=main#model-deployment-upgrade-configuration)
71
+
72
+
The following shows default model differences in Azure Government.
73
+
74
+
| Model | Azure Government Default Version | Public Default Version | Default upgrade date |
Copy file name to clipboardExpand all lines: articles/ai-foundry/responsible-ai/agents/transparency-note.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,8 @@ Developers can connect an Agent to external systems, APIs, and services through
110
110
***Model Context Protocol tools** (a custom service connected via Model Context Protocol through an existing remote MCP server to an Agent).
111
111
***Deep Research tool**: (a tool that enables multi-step web-based research with the o3-deep-research model and Grounding with Bing Search.).
112
112
***Computer Use**: (a tool to perform tasks by interacting with computer systems and applications through their UIs)
113
-
***Browser Automation Tool** (a tool that can perform real-world browser tasks through natural language prompts, enabling automated browsing activities without human intervention in the middle)
113
+
***Browser Automation Tool** (a tool that can perform real-world browser tasks through natural language prompts, enabling automated browsing activities without human intervention in the middle)
114
+
***Image Generation** (a tool to generate and edit images)
114
115
115
116
#### Orchestrating multi-agent systems
116
117
@@ -131,8 +132,9 @@ Azure AI Agent Service is **flexible and use-case agnostic.** This presents mult
131
132
***Government: Citizen Request Triage and Community Event Coordination:** A city clerk uses an agent to categorize incoming service requests (for example, pothole repairs), assign them to the right departments, and compile simple status updates; officials review and finalize communications to maintain transparency and accuracy.
132
133
***Education: Assisting with Research and Reference Gathering:** A teacher relies on an agent to gather age-appropriate articles and resources from reputable sources for a planetary science lesson; the teacher verifies the materials for factual accuracy and adjusts them to fit the curriculum, ensuring students receive trustworthy content.
133
134
***Manufacturing: Inventory Oversight and Task Scheduling:** A factory supervisor deploys an agent to monitor inventory levels, schedule restocking when supplies run low, and optimize shift rosters; management confirms the agent’s suggestions and retains final decision-making authority.
134
-
***Deep Research Tool**: Learn more about intended uses, capabilities, limitations, risks, and considerations when choosing a use case model with deep research technology in the [Azure OpenAI transparency note](../openai/transparency-note.md?tabs=text).
135
+
***Deep Research Tool**: Learn more about intended uses, capabilities, limitations, risks, and considerations when choosing a use case model with deep research technology in the [Azure OpenAI transparency note](/azure/ai-foundry/responsible-ai/openai/transparency-note?tabs=text).
135
136
***Computer Use**: The Computer Use tool comes with additional significant security and privacy risks, including prompt injection attacks. Learn more about intended uses, capabilities, limitations, risks, and considerations when choosing a use case in the [Azure OpenAI transparency note](../openai/transparency-note.md?tabs=image).
137
+
***Image Generation Tool**: The Image Generation tool is empowered by the gpt-image-1 model. Learn more about intended uses, capabilities, limitations, risks, and considerations when choosing a use case model in the [Azure OpenAI transparency note](/azure/ai-foundry/responsible-ai/openai/transparency-note?branch=main&tabs=image).
136
138
137
139
Agent code samples have specific intended uses that are configurable by developers to carefully build upon, implement, and deploy agents. See [list of Agent code samples](/azure/ai-foundry/agents/overview#agent-catalog).
This article provides details regarding how data provided by you to Azure Direct Models in Azure AI Foundry are processed, used, and stored. Azure Direct Model means an AI model designated and deployed as an “Azure Direct Model” in Azure AI Foundry, and includes Azure OpenAI models. Azure Direct Models store and process data to provide the service and to monitor for uses that violate the applicable product terms. Please also see [Microsoft Products and Services Data Protection Addendum](https://aka.ms/DPA), which governs data processing by Azure Direct Models. Azure AI Foundry is an Azure service; [learn more](/compliance/regulatory/offering-home) about applicable Azure compliance offerings.
17
18
18
-
This article provides details regarding how data provided by you to the Azure OpenAI service is processed, used, and stored. Azure OpenAI stores and processes data to provide the service and to monitor for uses that violate the applicable product terms. Also see the [Microsoft Products and Services Data Protection Addendum](https://aka.ms/DPA), which governs data processing by the Azure OpenAI Service. Azure OpenAI is an Azure service; [learn more](/compliance/regulatory/offering-home) about applicable Azure compliance offerings.
19
19
20
20
> [!IMPORTANT]
21
21
> Your prompts (inputs) and completions (outputs), your embeddings, and your training data:
22
-
> - are NOT available to other customers.
23
-
> - are NOT available to OpenAI.
24
-
> - are NOT used to improve OpenAI models.
25
-
> - are NOT used to train, retrain, or improve Azure OpenAI Service foundation models.
26
-
>- are NOT used to improve any Microsoft or third party products or services without your permission or instruction.
27
-
> -Your fine-tuned Azure OpenAI models are available exclusively for your use.
22
+
> - are NOT available to other customers.
23
+
> - are NOT available to OpenAI or other Azure Direct Model providers.
24
+
> - are NOT used by Azure Direct Model providers to improve their models or services.
25
+
> - are NOT used to train any generative AI foundation models without your permission or instruction.
26
+
>
27
+
> Your fine-tuned Azure OpenAI models are available exclusively for your use.
28
28
>
29
29
> The Azure OpenAI Service is operated by Microsoft as an Azure service; Microsoft hosts the OpenAI models in Microsoft's Azure environment and the Service does NOT interact with any services operated by OpenAI (e.g. ChatGPT, or the OpenAI API).
30
30
31
-
## What data does the Azure OpenAI Service process?
32
-
33
-
Azure OpenAI processes the following types of data:
31
+
## What data does Azure AI Foundry process to provide Azure Direct Models?
34
32
35
-
-**Prompts and generated content**. Prompts are submitted by the user, and content is generated by the service, via the completions, chat completions, images, and embeddings operations.
36
-
-**Uploaded data**. You can provide your own data for use with certain service features (e.g., [fine-tuning](/azure/ai-foundry/openai/how-to/fine-tuning?pivots=programming-language-studio), [assistants API](/azure/ai-foundry/openai/how-to/batch?tabs=standard-input&pivots=programming-language-ai-studio), [batch processing](/azure/ai-foundry/openai/how-to/batch?tabs=standard-input&pivots=programming-language-ai-studio)) using the Files API or vector store.
37
-
-**Data for stateful entities**. When you use certain optional features of Azure OpenAI, such as the [Responses API](/azure/ai-foundry/openai/how-to/responses), the Threads feature of the [Assistants API](/azure/ai-foundry/openai/how-to/assistant), and Stored completions, the service creates a data store to persist message history and other content, in accordance with how you configure the feature.
33
+
Azure AI Foundry processes the following types of data to provide Azure Direct Models:
34
+
-**Prompts and generated content**. When prompts are submitted by the user, content is generated by the service, via the completions, chat completions, images, and embeddings operations.
35
+
-**Uploaded data**. You can upload your own data for use with certain service features (e.g., [fine-tuning](/azure/ai-foundry/openai/how-to/fine-tuning?pivots=programming-language-studio), [assistants API](/azure/ai-foundry/openai/how-to/batch?tabs=standard-input&pivots=programming-language-ai-studio), [batch processing](/azure/ai-foundry/openai/how-to/batch?tabs=standard-input&pivots=programming-language-ai-studio)) using the Files API or vector store.
36
+
-**Data for stateful entities**. When you use certain optional features of Azure Direct Models and Agents, such as the [Responses API](/azure/ai-foundry/openai/how-to/responses), the Threads feature of the [Assistants API](/azure/ai-foundry/openai/how-to/assistant), and Stored completions, the service creates a data store to persist message history and other content, in accordance with how you configure the feature.
38
37
-**Augmented data included with or via prompts**. When you use data associated with stateful entities, the service retrieves relevant data from a configured data store and augments the prompt to produce generations that are grounded with your data. Prompts may also be augmented with data retrieved from a source included in the prompt itself, such as a URL.
39
38
-**Training & validation data**. You can provide your own training data consisting of prompt-completion pairs for the purposes of [fine-tuning an OpenAI model](/azure/ai-foundry/openai/how-to/fine-tuning?pivots=programming-language-studio).
40
39
41
-
## How does the Azure OpenAI Service process data?
40
+
## How does Azure AI Foundry process data to provide Azure Direct Models?
42
41
43
42
The diagram below illustrates how your data is processed. This diagram covers several types of processing:
44
43
45
-
1. How the Azure OpenAI Service processes your prompts via inferencing to generate content (including when additional data from a designated data source is added to a prompt using Azure OpenAI on your data, Assistants, or batch processing).
44
+
1. How Azure AI Foundry processes your prompts via inferencing with Azure Direct Models to generate content (including when additional data from a designated data source is added to a prompt using Azure OpenAI on your data, Assistants, or batch processing).
46
45
1. How the Assistants feature stores data in connection with Messages, Threads, and Runs.
47
46
1. How the Responses API feature stores data to persist message history.
48
47
1. How the Batch feature processes your uploaded data.
49
-
1. How the Azure OpenAI Service creates a fine-tuned (custom) model with your uploaded data.
50
-
1. How the Azure OpenAI Service and Microsoft personnel analyze prompts and completions (text and image) for harmful content and for patterns suggesting the use of the service in a manner that violates the Code of Conduct or other applicable product terms.
48
+
1. How Azure AI Foundry creates a fine-tuned (custom) model with your uploaded data.
49
+
1. How Azure AI Foundry and Microsoft personnel analyze prompts and completions (text and image) for harmful content and for patterns suggesting the use of the service in a manner that violates the Code of Conduct or other applicable product terms.
51
50
52
51
:::image type="content" source="media\flow-2.jpg" alt-text="Data flow diagram for the service." lightbox="media\flow-2.jpg":::
0 commit comments