@@ -12,7 +12,7 @@ ms.date: 05/07/2025
12
12
ms.reviewer : dantaylo
13
13
ms.author : sgilley
14
14
author : sdgilley
15
- zone_pivot_groups : foundry-sdk-languages
15
+ zone_pivot_groups : foundry-sdk-overview- languages
16
16
# customer intent: I want to learn how to use the Azure AI Foundry SDK to build AI applications on Azure.
17
17
---
18
18
@@ -77,8 +77,8 @@ The Azure AI Foundry Projects client library is a unified library that enables y
77
77
78
78
String endpoint =" your_project_endpoint" ; // Replace with your endpoint
79
79
80
- ProjectsClient client = new ProjectsClientBuilder ()
81
- .credential(new AzureKeyCredential(apiKey ))
80
+ ProjectsClient projectClient = new ProjectsClientBuilder ()
81
+ .credential(new DefaultAzureCredential ( ))
82
82
.endpoint(endpoint)
83
83
.buildClient ();
84
84
` ` `
@@ -104,8 +104,6 @@ The Azure AI Foundry Projects client library is a unified library that enables y
104
104
105
105
const endpoint = " your_project_endpoint" ; // Replace with your actual endpoint
106
106
const project = new AIProjectClient(endpoint, new DefaultAzureCredential ());
107
-
108
- const client = project.inference.azureOpenAI ();
109
107
` ` `
110
108
111
109
::: zone-end
@@ -139,7 +137,7 @@ The Azure AI Foundry Projects client library is a unified library that enables y
139
137
);
140
138
clientOptions.AddPolicy(tokenPolicy, HttpPipelinePosition.PerRetry);
141
139
142
- var client = new ChatCompletionsClient(
140
+ var projectClient = new ChatCompletionsClient(
143
141
endpointUrl,
144
142
credential,
145
143
clientOptions
@@ -168,9 +166,9 @@ To use Azure AI services, you can use the following client libraries with the en
168
166
[! INCLUDE [C# include](../../includes/sdk/csharp.md)]
169
167
::: zone-end
170
168
171
- ::: zone pivot=" programming-language-go"
169
+ < ! -- ::: zone pivot=" programming-language-go"
172
170
[! INCLUDE [Go include](../../includes/sdk/go.md)]
173
- ::: zone-end
171
+ ::: zone-end -- >
174
172
175
173
::: zone pivot=" programming-language-java"
176
174
[! INCLUDE [Java include](../../includes/sdk/java.md)]
0 commit comments