Skip to content

Commit

Permalink
feat: convrag added to client, fix response mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
amirai21 committed Nov 12, 2024
1 parent b859956 commit ad89523
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/examples/chatExample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ async function main() {
const client = new AI21({ apiKey: process.env.AI21_API_KEY });

try {

console.log('-------------------------------- streaming flow --------------------------------');

let streamResponse = await client.chat.completions.create({
const streamResponse = await client.chat.completions.create({
model: 'jamba-1.5-mini',
messages: [{ role: 'user', content: 'Hello, how are you? tell me a 100 line story about a cat' }],
stream: true,
Expand Down
2 changes: 1 addition & 1 deletion src/examples/convRagExample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AI21 } from "../AI21";
*/
async function main() {

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

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

0 comments on commit ad89523

Please sign in to comment.