Skip to content

Commit c8a6112

Browse files
authored
Update reference-model-inference-api.md
1 parent 4e998ab commit c8a6112

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

articles/ai-studio/reference/reference-model-inference-api.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ model = ChatCompletionsClient(
116116
)
117117
```
118118

119+
Explore our [samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/ai/azure-ai-inference/samples) and read the [API reference documentation](https://aka.ms/azsdk/azure-ai-inference/python/reference) to get yourself started.
120+
119121
# [JavaScript](#tab/javascript)
120122

121123
Install the package `@azure-rest/ai-inference` using npm:
@@ -150,6 +152,8 @@ const client = new ModelClient(
150152
);
151153
```
152154

155+
Explore our [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-inference-rest/samples) and read the [API reference documentation](https://aka.ms/AAp1kxa) to get yourself started.
156+
153157
# [REST](#tab/rest)
154158

155159
Use the reference section to explore the API design and which parameters are available. For example, the reference section for [Chat completions](reference-model-inference-chat-completions.md) details how to use the route `/chat/completions` to generate predictions based on chat-formatted instructions:
@@ -255,9 +259,9 @@ The following example shows the response for a chat completion request indicatin
255259
# [Python](#tab/python)
256260

257261
```python
262+
import json
258263
from azure.ai.inference.models import SystemMessage, UserMessage, ChatCompletionsResponseFormat
259264
from azure.core.exceptions import HttpResponseError
260-
import json
261265

262266
try:
263267
response = model.complete(
@@ -371,6 +375,7 @@ The following example shows the response for a chat completion request that has
371375

372376
```python
373377
from azure.ai.inference.models import AssistantMessage, UserMessage, SystemMessage
378+
from azure.core.exceptions import HttpResponseError
374379

375380
try:
376381
response = model.complete(

0 commit comments

Comments
 (0)