@@ -210,7 +210,7 @@ function getFileCallable<I extends Record<string, unknown> & { messages?: any[]
210210 ) ;
211211 } else {
212212 console . info (
213- `${ CYAN } No \`callable\` provided for your ${ type_ } file - will attempt to generate logs on Humanloop.\n\n${ RESET } ` ,
213+ `${ CYAN } No \`callable\` provided for your ${ _ . capitalize ( type_ ) } file - will attempt to generate logs on Humanloop.\n\n${ RESET } ` ,
214214 ) ;
215215 }
216216 }
@@ -278,13 +278,13 @@ export async function runEval<
278278 // File does not exist, try upserting it
279279 }
280280 if ( ! fileExists ) {
281- try {
282- hlFile = await upsertFile ( { file : file_ , type : type_ , client : client } ) ;
283- } catch ( e : any ) {
284- console . error (
285- `${ RED } Error in your \`file\` argument:\n\n${ e . constructor . name } : ${ e . message } ${ RESET } ` ,
286- ) ;
287- return [ ] ;
281+ try {
282+ hlFile = await upsertFile ( { file : file_ , type : type_ , client : client } ) ;
283+ } catch ( e : any ) {
284+ console . error (
285+ `${ RED } Error in your \`file\` argument:\n\n${ e . constructor . name } : ${ e . message } ${ RESET } ` ,
286+ ) ;
287+ return [ ] ;
288288 }
289289 }
290290
@@ -338,7 +338,7 @@ export async function runEval<
338338
339339 function handleExitSignal ( signum : number ) {
340340 process . stderr . write (
341- `\n${ RED } Received signal ${ signum } , cancelling Evaluation and shutting down threads ...${ RESET } \n` ,
341+ `\n${ RED } Received signal ${ signum } , cancelling the Evaluation ...${ RESET } \n` ,
342342 ) ;
343343 cancelEvaluation ( ) ;
344344 process . exit ( signum ) ;
@@ -360,12 +360,12 @@ export async function runEval<
360360 if ( function_ === undefined ) {
361361 // TODO: trigger run when updated API is available
362362 process . stdout . write (
363- `${ CYAN } \nRunning '${ hlFile . name } ' over the Dataset '${ hlDataset . name } '${ RESET } \n` ,
363+ `${ CYAN } \nRunning '${ hlFile . name } ' ${ _ . capitalize ( hlFile . type ) } over the Dataset '${ hlDataset . name } '${ RESET } \n` ,
364364 ) ;
365365 } else {
366366 // Running the evaluation locally
367367 process . stdout . write (
368- `${ CYAN } \nRunning '${ hlFile . name } ' over the Dataset '${ hlDataset . name } ' locally...${ RESET } \n\n` ,
368+ `${ CYAN } \nRunning '${ hlFile . name } ' ${ _ . capitalize ( hlFile . type ) } over the Dataset '${ hlDataset . name } ' locally...${ RESET } \n\n` ,
369369 ) ;
370370 }
371371
@@ -482,9 +482,6 @@ export async function runEval<
482482
483483 // Generate locally if a function is provided
484484 if ( function_ ) {
485- console . log (
486- `${ CYAN } \nRunning ${ hlFile . name } over the Dataset ${ hlDataset . name } ${ RESET } ` ,
487- ) ;
488485 const totalDatapoints = hlDataset . datapoints ! . length ;
489486 progressBar . start ( totalDatapoints , 0 ) ;
490487
@@ -496,11 +493,6 @@ export async function runEval<
496493 { concurrency : concurrency } ,
497494 ) ;
498495 progressBar . stop ( ) ;
499- } else {
500- // TODO: trigger run when updated API is available
501- console . log (
502- `${ CYAN } \nRunning ${ hlFile . name } over the Dataset ${ hlDataset . name } ${ RESET } ` ,
503- ) ;
504496 }
505497
506498 // Wait for the Evaluation to complete then print the results
0 commit comments