Skip to content

Commit

Permalink
feat: files readme
Browse files Browse the repository at this point in the history
  • Loading branch information
amirai21 committed Dec 5, 2024
1 parent 04b35e5 commit 3059f8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ const client = new AI21({
apiKey: process.env.AI21_API_KEY, // or pass it in directly
});

const fileUploadResponse = await client.files.upload({
file: 'path/to/file',
const fileUploadResponse = await client.files.create({
file: './articles/article1.pdf',
labels: ['science', 'biology'],
path: 'path/to/file',
path: 'virtual-path/to/science-articles',
});


Expand Down

0 comments on commit 3059f8d

Please sign in to comment.