Skip to content

Commit d868f98

Browse files
committed
remove apiKey and GO
1 parent 5e93cd8 commit d868f98

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

articles/ai-foundry/how-to/develop/sdk-overview.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.date: 05/07/2025
1212
ms.reviewer: dantaylo
1313
ms.author: sgilley
1414
author: sdgilley
15-
zone_pivot_groups: foundry-sdk-languages
15+
zone_pivot_groups: foundry-sdk-overview-languages
1616
# customer intent: I want to learn how to use the Azure AI Foundry SDK to build AI applications on Azure.
1717
---
1818

@@ -77,8 +77,8 @@ The Azure AI Foundry Projects client library is a unified library that enables y
7777
7878
String endpoint ="your_project_endpoint"; // Replace with your endpoint
7979
80-
ProjectsClient client = new ProjectsClientBuilder()
81-
.credential(new AzureKeyCredential(apiKey))
80+
ProjectsClient projectClient = new ProjectsClientBuilder()
81+
.credential(new DefaultAzureCredential())
8282
.endpoint(endpoint)
8383
.buildClient();
8484
```
@@ -104,8 +104,6 @@ The Azure AI Foundry Projects client library is a unified library that enables y
104104
105105
const endpoint = "your_project_endpoint"; // Replace with your actual endpoint
106106
const project = new AIProjectClient(endpoint, new DefaultAzureCredential());
107-
108-
const client = project.inference.azureOpenAI();
109107
```
110108
111109
::: zone-end
@@ -139,7 +137,7 @@ The Azure AI Foundry Projects client library is a unified library that enables y
139137
);
140138
clientOptions.AddPolicy(tokenPolicy, HttpPipelinePosition.PerRetry);
141139
142-
var client = new ChatCompletionsClient(
140+
var projectClient = new ChatCompletionsClient(
143141
endpointUrl,
144142
credential,
145143
clientOptions
@@ -168,9 +166,9 @@ To use Azure AI services, you can use the following client libraries with the en
168166
[!INCLUDE [C# include](../../includes/sdk/csharp.md)]
169167
::: zone-end
170168
171-
::: zone pivot="programming-language-go"
169+
<!-- ::: zone pivot="programming-language-go"
172170
[!INCLUDE [Go include](../../includes/sdk/go.md)]
173-
::: zone-end
171+
::: zone-end -->
174172
175173
::: zone pivot="programming-language-java"
176174
[!INCLUDE [Java include](../../includes/sdk/java.md)]

0 commit comments

Comments
 (0)