mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
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:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user