Skip to content

Commit 8914f61

Browse files
amirai21asafgardin
authored andcommitted
feat: disable examples for non node env
1 parent 90eb449 commit 8914f61

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/studio/conversational-rag/rag-engine.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,10 @@ const fileContent = Buffer.from(
7373
);
7474
const dummyFile = new File([fileContent], 'example.txt', { type: 'text/plain' });
7575

76-
if (isNode){
76+
if (isNode) {
7777
uploadGetUpdateDelete(dummyFile, Date.now().toString()).catch(console.error);
7878
listFiles().catch(console.error);
79-
}
80-
else{
79+
} else {
8180
// TODO - add node support for files
8281
console.log('Cannot run uploads in not Node environment');
8382
}

0 commit comments

Comments
 (0)