Enhance output logging in CLI and ModelDialog by integrating chalk for better readability. Update output handling to include detailed reasoning and token information. Refactor message management in ModelDialog to improve response processing and add support for function call arguments. Adjust chroot paths in various tools for consistency.
This commit is contained in:
@@ -7,7 +7,10 @@ export async function run(args){
|
||||
const buffer = await res.buffer();
|
||||
const filename = new Date().getTime() + '.' + url.split('.').pop();
|
||||
const content = buffer.slice(0, 500).toString('utf8');
|
||||
return { filename, content };
|
||||
// save the file to the chroot
|
||||
const filePath = `/workspaces/aiTools/root/${filename}`;
|
||||
fs.writeFileSync(filePath, content);
|
||||
return { 'Downloaded to:': filename };
|
||||
};
|
||||
|
||||
// metadata for the tool runner
|
||||
|
||||
Reference in New Issue
Block a user