You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-30Lines changed: 54 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,33 @@
18
18
19
19
---
20
20
21
+
## Table of Contents
22
+
23
+
-[Examples](#examples-tldr) 🗂️
24
+
-[Migration from v1.3.4 and below](#migration-from-v134-and-below)
25
+
-[AI21 Official Documentation](#Documentation)
26
+
-[Installation](#Installation) 💿
27
+
-[Usage - Chat Completions](#Usage)
28
+
-[Older Models Support Usage](#Older-Models-Support-Usage)
29
+
-[More Models](#More-Models)
30
+
-[Streaming](#Streaming)
31
+
-[TSMs](#TSMs)
32
+
-[Token Counting](#Token-Counting)
33
+
-[Environment Variables](#Environment-Variables)
34
+
-[Error Handling](#Error-Handling)
35
+
-[Cloud Providers](#Cloud-Providers) ☁️
36
+
-[AWS](#AWS)
37
+
-[SageMaker](#SageMaker)
38
+
-[Bedrock](#Bedrock)
39
+
40
+
## Examples (tl;dr)
41
+
42
+
If you want to quickly get a glance how to use the AI21 Python SDK and jump straight to business, you can check out the examples. Take a look at our models and see them in action! Several examples and demonstrations have been put together to show our models' functionality and capabilities.
43
+
44
+
### [Check out the Examples](examples/)
45
+
46
+
Feel free to dive in, experiment, and adapt these examples to suit your needs. We believe they'll help you get up and running quickly.
47
+
21
48
## Migration from v1.3.4 and below
22
49
23
50
In `v2.0.0` we introduced a new SDK that is not backwards compatible with the previous version.
@@ -133,7 +160,6 @@ pip install ai21
133
160
134
161
```python
135
162
from ai21 import AI21Client
136
-
from ai21.models import RoleType
137
163
from ai21.models.chat import ChatMessage
138
164
139
165
client = AI21Client(
@@ -236,6 +262,8 @@ for chunk in response:
236
262
237
263
---
238
264
265
+
## More Models
266
+
239
267
## TSMs
240
268
241
269
AI21 Studio's Task-Specific Models offer a range of powerful tools. These models have been specifically designed for their respective tasks and provide high-quality results while optimizing efficiency.
Explore our examples to see our models in action! We've put together a variety of use cases and demonstrations to showcase the capabilities and functionality of our models.
441
-
442
-
### [Check out the Examples](examples/)
443
-
444
-
Feel free to dive in, experiment, and adapt these examples to suit your needs. We believe they'll help you get up and running quickly.
0 commit comments