Skip to content

Commit 9de0844

Browse files
committed
fix: Added logs of env
1 parent 9cccbc9 commit 9de0844

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ async function uploadGetUpdateDelete(fileInput, path) {
5555
console.log('Starting file deletion...');
5656
await client.files.delete(uploadFileResponse.fileId);
5757
console.log('✓ File deletion completed');
58-
58+
5959
// Add buffer time between operations
6060
await sleep(2000);
61-
6261
} catch (error) {
6362
console.error('❌ Error in uploadGetUpdateDelete:', error);
6463
throw error;
@@ -76,6 +75,15 @@ const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'u
7675
if (isBrowser) {
7776
console.log('Cannot run upload examples in Browser environment');
7877
} else {
78+
/* Log environment details */
79+
console.log('=== Environment Information ===');
80+
console.log(`Node.js Version: ${process.version}`);
81+
console.log(`Platform: ${process.platform}`);
82+
console.log(`Architecture: ${process.arch}`);
83+
console.log(`Process ID: ${process.pid}`);
84+
console.log(`Current Working Directory: ${process.cwd()}`);
85+
console.log('===========================\n');
86+
7987
/* Run all operations sequentially */
8088
(async () => {
8189
try {

0 commit comments

Comments
 (0)