Improve tool, output mode selection process

- JSON extract from LLMs is pretty decent now, so get the input tools and output modes all in one go. It'll help the model think through the full cycle of what it wants to do to handle the request holistically.
- Make slight improvements to tool selection indicators
This commit is contained in:
sabaimran
2024-11-15 13:53:53 -08:00
parent c1a5b32ebf
commit e3f1ea9dee
5 changed files with 64 additions and 171 deletions

View File

@@ -30,6 +30,7 @@ import {
Code,
Shapes,
Trash,
Toolbox,
} from "@phosphor-icons/react";
import DOMPurify from "dompurify";
@@ -282,8 +283,8 @@ function chooseIconFromHeader(header: string, iconColor: string) {
return <Cloud className={`${classNames}`} />;
}
if (compareHeader.includes("data sources")) {
return <Folder className={`${classNames}`} />;
if (compareHeader.includes("tools")) {
return <Toolbox className={`${classNames}`} />;
}
if (compareHeader.includes("notes")) {