Skip to content

Commit 3c45b63

Browse files
committed
fixes
1 parent 488ecb3 commit 3c45b63

File tree

7 files changed

+14
-100
lines changed

7 files changed

+14
-100
lines changed

articles/ai-foundry/model-inference/includes/use-chat-reasoning/csharp.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,12 @@ To complete this tutorial, you need:
1919

2020
[!INCLUDE [how-to-prerequisites](../how-to-prerequisites.md)]
2121

22+
[!INCLUDE [how-to-prerequisites-csharp](../how-to-prerequisites-csharp.md)]
23+
2224
* A model with reasoning capabilities model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a reasoning model.
2325

2426
* This example uses `DeepSeek-R1`.
2527

26-
* Install the Azure AI inference package with the following command:
27-
28-
```bash
29-
dotnet add package Azure.AI.Inference --prerelease
30-
```
31-
32-
* If you are using Entra ID, you also need the following package:
33-
34-
```bash
35-
dotnet add package Azure.Identity
36-
```
37-
3828
## Use reasoning capabilities with chat
3929

4030
First, create the client to consume the model. The following code uses an endpoint URL and key that are stored in environment variables.

articles/ai-foundry/model-inference/includes/use-chat-reasoning/java.md

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -19,45 +19,12 @@ To complete this tutorial, you need:
1919

2020
[!INCLUDE [how-to-prerequisites](../how-to-prerequisites.md)]
2121

22+
[!INCLUDE [how-to-prerequisites-java](../how-to-prerequisites-java.md)]
23+
2224
* A model with reasoning capabilities model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a reasoning model.
2325

2426
* This examples use `DeepSeek-R1`.
2527

26-
* Add the [Azure AI inference package](https://aka.ms/azsdk/azure-ai-inference/java/reference) to your project:
27-
28-
```xml
29-
<dependency>
30-
<groupId>com.azure</groupId>
31-
<artifactId>azure-ai-inference</artifactId>
32-
<version>1.0.0-beta.2</version>
33-
</dependency>
34-
```
35-
36-
* If you are using Entra ID, you also need the following package:
37-
38-
```xml
39-
<dependency>
40-
<groupId>com.azure</groupId>
41-
<artifactId>azure-identity</artifactId>
42-
<version>1.13.3</version>
43-
</dependency>
44-
```
45-
46-
* Import the following namespace:
47-
48-
```java
49-
package com.azure.ai.inference.usage;
50-
51-
import com.azure.ai.inference.EmbeddingsClient;
52-
import com.azure.ai.inference.EmbeddingsClientBuilder;
53-
import com.azure.ai.inference.models.EmbeddingsResult;
54-
import com.azure.ai.inference.models.EmbeddingItem;
55-
import com.azure.core.credential.AzureKeyCredential;
56-
import com.azure.core.util.Configuration;
57-
58-
import java.util.ArrayList;
59-
import java.util.List;
60-
```
6128

6229
## Use reasoning capabilities with chat
6330

articles/ai-foundry/model-inference/includes/use-chat-reasoning/javascript.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,11 @@ To complete this tutorial, you need:
1919

2020
[!INCLUDE [how-to-prerequisites](../how-to-prerequisites.md)]
2121

22+
[!INCLUDE [how-to-prerequisites-javascript](../how-to-prerequisites-javascript.md)]
23+
2224
* A model with reasoning capabilities model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add a reasoning model.
2325

2426
* This examples use `DeepSeek-R1`.
25-
26-
* Install the [Azure Inference library for JavaScript](https://aka.ms/azsdk/azure-ai-inference/javascript/reference) with the following command:
27-
28-
```bash
29-
npm install @azure-rest/ai-inference
30-
```
3127

3228
## Use reasoning capabilities with chat
3329

articles/ai-foundry/model-inference/includes/use-embeddings/csharp.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,10 @@ To use embedding models in your application, you need:
2424

2525
[!INCLUDE [how-to-prerequisites](../how-to-prerequisites.md)]
2626

27-
* An embeddings model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add an embeddings model to your resource.
28-
29-
* Install the Azure AI inference package with the following command:
27+
[!INCLUDE [how-to-prerequisites-csharp](../how-to-prerequisites-csharp.md)]
3028

31-
```bash
32-
dotnet add package Azure.AI.Inference --prerelease
33-
```
34-
35-
> [!TIP]
36-
> Read more about the [Azure AI inference package and reference](https://aka.ms/azsdk/azure-ai-inference/python/reference).
37-
38-
* If you are using Entra ID, you also need the following package:
29+
* An embeddings model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add an embeddings model to your resource.
3930

40-
```bash
41-
dotnet add package Azure.Identity
42-
```
4331

4432
## Use embeddings
4533

articles/ai-foundry/model-inference/includes/use-embeddings/javascript.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,9 @@ To use embedding models in your application, you need:
2424

2525
[!INCLUDE [how-to-prerequisites](../how-to-prerequisites.md)]
2626

27-
* An embeddings model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add an embeddings model to your resource.
28-
29-
* Install the Azure Inference library for JavaScript with the following command:
27+
[!INCLUDE [how-to-prerequisites-javascript](../how-to-prerequisites-javascript.md)]
3028

31-
```bash
32-
npm install @azure-rest/ai-inference
33-
```
34-
35-
> [!TIP]
36-
> Read more about the [Azure AI inference package and reference](https://aka.ms/azsdk/azure-ai-inference/javascript/reference).
29+
* An embeddings model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add an embeddings model to your resource.
3730

3831
## Use embeddings
3932

articles/ai-foundry/model-inference/includes/use-image-embeddings/csharp.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,12 @@ To use embedding models in your application, you need:
2424

2525
[!INCLUDE [how-to-prerequisites](../how-to-prerequisites.md)]
2626

27+
[!INCLUDE [how-to-prerequisites-csharp](../how-to-prerequisites-csharp.md)]
28+
2729
* An image embeddings model deployment. If you don't have one, read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add an embeddings model to your resource.
2830

2931
* This example uses `Cohere-embed-v3-english` from Cohere.
3032

31-
* Install the Azure AI inference package with the following command:
32-
33-
```bash
34-
dotnet add package Azure.AI.Inference --prerelease
35-
```
36-
37-
> [!TIP]
38-
> Read more about the [Azure AI inference package and reference](https://aka.ms/azsdk/azure-ai-inference/python/reference).
39-
40-
* If you're using Entra ID, you also need the following package:
41-
42-
```bash
43-
dotnet add package Azure.Identity
44-
```
45-
4633
## Use image embeddings
4734

4835
First, create the client to consume the model. The following code uses an endpoint URL and key that are stored in environment variables.

articles/ai-foundry/model-inference/includes/use-image-embeddings/javascript.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,12 @@ To use embedding models in your application, you need:
2424

2525
[!INCLUDE [how-to-prerequisites](../how-to-prerequisites.md)]
2626

27+
[!INCLUDE [how-to-prerequisites-javascript](../how-to-prerequisites-javascript.md)]
28+
2729
* An image embeddings model deployment. If you don't have one read [Add and configure models to Azure AI services](../../how-to/create-model-deployments.md) to add an embeddings model to your resource.
2830

2931
* This example uses `Cohere-embed-v3-english` from Cohere.
3032

31-
* Install the Azure Inference library for JavaScript with the following command:
32-
33-
```bash
34-
npm install @azure-rest/ai-inference
35-
```
36-
37-
> [!TIP]
38-
> Read more about the [Azure AI inference package and reference](https://aka.ms/azsdk/azure-ai-inference/javascript/reference).
39-
4033
## Use image embeddings
4134

4235
First, create the client to consume the model. The following code uses an endpoint URL and key that are stored in environment variables.

0 commit comments

Comments
 (0)