We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b35e5 commit 3059f8dCopy full SHA for 3059f8d
README.md
@@ -70,10 +70,10 @@ const client = new AI21({
70
apiKey: process.env.AI21_API_KEY, // or pass it in directly
71
});
72
73
-const fileUploadResponse = await client.files.upload({
74
- file: 'path/to/file',
+const fileUploadResponse = await client.files.create({
+ file: './articles/article1.pdf',
75
labels: ['science', 'biology'],
76
- path: 'path/to/file',
+ path: 'virtual-path/to/science-articles',
77
78
79
0 commit comments