Skip to content

Commit af51e52

Browse files
amirai21asafgardin
authored andcommitted
feat: convrag added to client, fix response mapping
1 parent 2e577a2 commit af51e52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/examples/chatExample.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ async function main() {
77
const client = new AI21({ apiKey: process.env.AI21_API_KEY });
88

99
try {
10-
10+
1111
console.log('-------------------------------- streaming flow --------------------------------');
1212

13-
let streamResponse = await client.chat.completions.create({
13+
const streamResponse = await client.chat.completions.create({
1414
model: 'jamba-1.5-mini',
1515
messages: [{ role: 'user', content: 'Hello, how are you? tell me a 100 line story about a cat' }],
1616
stream: true,

src/examples/convRagExample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { AI21 } from "../AI21";
55
*/
66
async function main() {
77

8-
/* TODO - add a file upload example when library support is added and combined with the below flow */
8+
/* TODO - add a file upload example when library support is added and combine it with the below flow */
99

1010
const client = new AI21({ apiKey: process.env.AI21_API_KEY });
1111
try {

0 commit comments

Comments
 (0)