Skip to content

Commit 4fea9d4

Browse files
Merge pull request #2759 from santiagxf/santiagxf-patch-1
Update java.md
2 parents 384687b + ae5073f commit 4fea9d4

File tree

1 file changed

+4
-4
lines changed
  • articles/ai-foundry/model-inference/includes/use-chat-reasoning

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To complete this tutorial, you need:
2727
<dependency>
2828
<groupId>com.azure</groupId>
2929
<artifactId>azure-ai-inference</artifactId>
30-
<version>1.0.0-beta.1</version>
30+
<version>1.0.0-beta.2</version>
3131
</dependency>
3232
```
3333

@@ -65,7 +65,6 @@ First, create the client to consume the model. The following code uses an endpoi
6565
ChatCompletionsClient client = new ChatCompletionsClient(
6666
new URI("https://<resource>.services.ai.azure.com/models"),
6767
new AzureKeyCredential(System.getProperty("AZURE_INFERENCE_CREDENTIAL")),
68-
"${variants-sample}"
6968
```
7069

7170
> [!TIP]
@@ -76,8 +75,7 @@ If you have configured the resource to with **Microsoft Entra ID** support, you
7675
```java
7776
client = new ChatCompletionsClient(
7877
new URI("https://<resource>.services.ai.azure.com/models"),
79-
new DefaultAzureCredentialBuilder().build(),
80-
"${variants-sample}"
78+
new DefaultAzureCredentialBuilder().build()
8179
);
8280
```
8381
@@ -87,6 +85,7 @@ The following example shows how you can create a basic chat request to the model
8785
8886
```java
8987
ChatCompletionsOptions requestOptions = new ChatCompletionsOptions()
88+
.setModel("DeepSeek-R1")
9089
.setMessages(Arrays.asList(
9190
new ChatRequestUserMessage("How many languages are in the world?")
9291
));
@@ -167,6 +166,7 @@ You can _stream_ the content to get it as it's being generated. Streaming conten
167166

168167
```java
169168
ChatCompletionsOptions requestOptions = new ChatCompletionsOptions()
169+
.setModel("DeepSeek-R1")
170170
.setMessages(Arrays.asList(
171171
new ChatRequestUserMessage("How many languages are in the world? Write an essay about it.")
172172
))

0 commit comments

Comments
 (0)