File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
articles/ai-foundry/model-inference/includes/use-chat-reasoning Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ import { AzureKeyCredential } from "@azure/core-auth";
38
38
39
39
const client = new ModelClient (
40
40
process .env .AZURE_INFERENCE_ENDPOINT ,
41
- new AzureKeyCredential (process .env .AZURE_INFERENCE_CREDENTIAL ),
42
- " deepseek-r1"
41
+ new AzureKeyCredential (process .env .AZURE_INFERENCE_CREDENTIAL )
43
42
);
44
43
```
45
44
@@ -58,7 +57,6 @@ const clientOptions = { credentials: { "https://cognitiveservices.azure.com" } }
58
57
const client = new ModelClient (
59
58
" https://<resource>.services.ai.azure.com/models" ,
60
59
new DefaultAzureCredential (),
61
- " deepseek-r1" ,
62
60
clientOptions,
63
61
);
64
62
```
@@ -74,6 +72,7 @@ var messages = [
74
72
75
73
var response = await client .path (" /chat/completions" ).post ({
76
74
body: {
75
+ model: " DeepSeek-R1" ,
77
76
messages: messages,
78
77
}
79
78
});
@@ -163,6 +162,7 @@ var messages = [
163
162
164
163
var response = await client .path (" /chat/completions" ).post ({
165
164
body: {
165
+ model: " DeepSeek-R1" ,
166
166
messages: messages,
167
167
}
168
168
}).asNodeStream ();
@@ -229,6 +229,7 @@ try {
229
229
];
230
230
231
231
var response = await client .path (" /chat/completions" ).post ({
232
+ model: " DeepSeek-R1" ,
232
233
body: {
233
234
messages: messages,
234
235
}
You can’t perform that action at this time.
0 commit comments