Merge pull request #977 from khoj-ai/features/improve-tool-selection

- 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-17 20:08:19 -08:00
committed by GitHub
10 changed files with 104 additions and 242 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")) {