Skip to content

Commit bd72394

Browse files
authored
Merge pull request #10 from AI21Labs/update_readme
fix: Response in readme
2 parents 56ffd2c + a9f9f2e commit bd72394

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)