Skip to content

Commit 04b35e5

Browse files
committed
feat: files readme
1 parent 4baa92d commit 04b35e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ yarn add ai21
2020

2121
To use the AI21 API Client, you'll need to have an API key. You can obtain an API key by signing up for an account on the AI21 website.
2222

23+
The `AI21` class provides a `chat` property that gives you access to the Chat API. You can use this to generate text, complete prompts, and more.
24+
2325
Here's an example of how to use the `AI21` class to interact with the API:
2426

2527
```typescript
@@ -55,12 +57,10 @@ for await (const chunk of streamResponse) {
5557
}
5658
```
5759

58-
The `AI21` class provides a `chat` property that gives you access to the Chat API. You can use this to generate text, complete prompts, and more.
59-
6060
### Files
6161

6262

63-
The `AI21` class provides a `files` property that gives you access to the Files API. You can use this to upload files to the AI21 Studio. These files will be used as context for the conversational-rag engine.
63+
The `AI21` class provides a `files` property that gives you access to the Files API. You can use this to upload files to the AI21 Studio, which can then be utilized as context for the conversational RAG engine
6464

6565

6666
```typescript

0 commit comments

Comments
 (0)