Skip to content

Commit a9f9f2e

Browse files
committed
fix: Response in readme
1 parent 56ffd2c commit a9f9f2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const response = await client.chat.completions.create({
3434
messages: [{ role: 'user', content: 'Hello, how are you? tell me a 100 line story about a cat named "Fluffy"' }],
3535
});
3636

37-
console.log(response.data);
37+
console.log(response);
3838
```
3939

4040
### Streaming Responses
@@ -62,7 +62,7 @@ The `AI21` class provides a `chat` property that gives you access to the Chat AP
6262
The `AI21` class accepts several configuration options, which you can pass in when creating a new instance:
6363

6464
- `baseURL`: The base URL for the API endpoint (default: `https://api.ai21.com/studio/v1`)
65-
- `apiKey`: Your AI21 API key
65+
- `apiKey`: Your AI21 API Key
6666
- `maxRetries`: The maximum number of retries for failed requests (default: `3`)
6767
- `timeout`: The request timeout in seconds
6868

0 commit comments

Comments
 (0)