Refactor logging in CLI and ModelDialog to improve clarity by commenting out verbose console outputs. Update function call result logging to include limited arguments and JSON stringification for better readability. Enhance error handling in read_file.js to check for file existence before processing.
This commit is contained in:
4
cli2.js
4
cli2.js
@@ -10,10 +10,10 @@ import chalk from 'chalk';
|
||||
const modelDialog = new ModelDialog();
|
||||
|
||||
modelDialog.on('outputUpdate', (output) => {
|
||||
console.log(chalk.blue('output event'),output);
|
||||
//console.log(chalk.blue('output event'),output);
|
||||
});
|
||||
modelDialog.on('reasoningUpdate', (output) => {
|
||||
console.log(chalk.blue('reasoning event'),output);
|
||||
//console.log(chalk.blue('reasoning event'),output);
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user