File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
examples/studio/conversational-rag Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,9 @@ async function uploadGetUpdateDelete(fileInput, path) {
55
55
console . log ( 'Starting file deletion...' ) ;
56
56
await client . files . delete ( uploadFileResponse . fileId ) ;
57
57
console . log ( '✓ File deletion completed' ) ;
58
-
58
+
59
59
// Add buffer time between operations
60
60
await sleep ( 2000 ) ;
61
-
62
61
} catch ( error ) {
63
62
console . error ( '❌ Error in uploadGetUpdateDelete:' , error ) ;
64
63
throw error ;
@@ -76,6 +75,15 @@ const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'u
76
75
if ( isBrowser ) {
77
76
console . log ( 'Cannot run upload examples in Browser environment' ) ;
78
77
} 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
+
79
87
/* Run all operations sequentially */
80
88
( async ( ) => {
81
89
try {
You can’t perform that action at this time.
0 commit comments