Add better error handling for diagram output, and fix chat history construct

- Make the `clean_json` method more robust as well
This commit is contained in:
sabaimran
2024-11-11 20:44:19 -08:00
parent 7bd2f83f97
commit 1cab6c081f
4 changed files with 50 additions and 13 deletions

View File

@@ -215,6 +215,10 @@ export function getIconForSlashCommand(command: string, customClassName: string
return <PencilLine className={className} />;
}
if (command.includes("code")) {
return <Code className={className} />;
}
return <ArrowRight className={className} />;
}