Skip to content

Commit 8dfd371

Browse files
committed
acrolinx fixes
1 parent 61b9a2f commit 8dfd371

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/ai-services/openai/how-to/assistant.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'How to create Assistants with Azure OpenAI Service'
33
titleSuffix: Azure OpenAI
4-
description: Learn how to create helpful AI Assistants with tools like Code Interpreter
4+
description: Learn how to create helpful AI Assistants with tools like Code Interpreter.
55
services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-openai
@@ -16,7 +16,7 @@ recommendations: false
1616

1717
# Getting started with Azure OpenAI Assistants (Preview)
1818

19-
Azure OpenAI Assistants (Preview) allows you to create AI assistants tailored to your needs through custom instructions and augmented by advanced tools like code interpreter, and custom functions. In this article we'll provide an in-depth walkthrough of getting started with the Assistants API.
19+
Azure OpenAI Assistants (Preview) allows you to create AI assistants tailored to your needs through custom instructions and augmented by advanced tools like code interpreter, and custom functions. In this article, we provide an in-depth walkthrough of getting started with the Assistants API.
2020

2121
[!INCLUDE [Assistants v2 note](../includes/assistants-v2-note.md)]
2222

@@ -151,7 +151,7 @@ print(assistant.model_dump_json(indent=2))
151151

152152
### Create a thread
153153

154-
Now let's create a thread
154+
Now let's create a thread.
155155

156156
```python
157157
# Create a thread
@@ -163,9 +163,9 @@ print(thread)
163163
Thread(id='thread_6bunpoBRZwNhovwzYo7fhNVd', created_at=1705972465, metadata={}, object='thread')
164164
```
165165

166-
A thread is essentially the record of the conversation session between the assistant and the user. It's similar to the messages array/list in a typical chat completions API call. One of the key differences, is unlike a chat completions messages array, you don't need to track tokens with each call to make sure that you're remaining below the context length of the model. Threads abstract away this management detail and will compress the thread history as needed in order to allow the conversation to continue. The ability for threads to accomplish this with larger conversations is enhanced when using the latest models, which have larger context lengths as well as support for the latest features.
166+
A thread is essentially the record of the conversation session between the assistant and the user. It's similar to the messages array/list in a typical chat completions API call. One of the key differences, is unlike a chat completions messages array, you don't need to track tokens with each call to make sure that you're remaining below the context length of the model. Threads abstract away this management detail and will compress the thread history as needed in order to allow the conversation to continue. The ability for threads to accomplish this with larger conversations is enhanced when using the latest models, which have larger context lengths and support for the latest features.
167167

168-
Next create the first user question to add to the thread
168+
Next create the first user question to add to the thread.
169169

170170
```python
171171
# Add a user question to the thread
@@ -390,7 +390,7 @@ image = Image.open("sinewave.png")
390390
image.show()
391391
```
392392

393-
:::image type="content" source="../media/how-to/assistants/sine-wave.png" alt-text="Screenshot of code interpreter generated sinewave." lightbox="../media/how-to/assistants/sine-wave.png":::
393+
:::image type="content" source="../media/how-to/assistants/sine-wave.png" alt-text="Screenshot of code interpreter generated sine wave." lightbox="../media/how-to/assistants/sine-wave.png":::
394394

395395
### Ask a follow-up question on the thread
396396

@@ -842,7 +842,7 @@ image = Image.open("dark_sine.png")
842842
image.show()
843843
```
844844

845-
:::image type="content" source="../media/how-to/assistants/dark-mode.png" alt-text="Screenshot of code interpreter generated sinewave in darkmode." lightbox="../media/how-to/assistants/dark-mode.png":::
845+
:::image type="content" source="../media/how-to/assistants/dark-mode.png" alt-text="Screenshot of code interpreter generated sine wave in dark mode." lightbox="../media/how-to/assistants/dark-mode.png":::
846846

847847
## Additional reference
848848

0 commit comments

Comments
 (0)