File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
samples/microsoft/javascript/mslearn-resources/quickstart/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,11 @@ async function runAgents() {
9191 // <create_filesearch_agent>
9292 // Upload a file named product_info_1.md
9393 console . log ( `\n==================== 🕵️ FILE AGENT ====================` ) ;
94- const filePath = path . join ( __dirname , '../../../../data/product_info_1.md' ) ;
95- const fileStream = fs . createReadStream ( filePath ) ;
96- const file = await client . agents . files . upload ( fileStream , 'assistants' , {
97- fileName : 'product_info_1.md'
98- } ) ;
94+ const filePath = path . join ( __dirname , '../../../../data/product_info_1.md' ) ;
95+ const fileStream = fs . createReadStream ( filePath ) ;
96+ const file = await client . agents . files . upload ( fileStream , 'assistants' , {
97+ fileName : 'product_info_1.md'
98+ } ) ;
9999 console . log ( `Uploaded file, ID: ${ file . id } ` ) ;
100100 const vectorStore = await client . agents . vectorStores . create ( {
101101 fileIds : [ file . id ] ,
You can’t perform that action at this time.
0 commit comments