Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/components/message-parts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,17 @@ const ImageGeneratorToolInvocation = dynamic(
},
);

const HttpRequestToolInvocation = dynamic(
() =>
import("./tool-invocation/http-request").then(
(mod) => mod.HttpRequestToolInvocation,
),
{
ssr: false,
loading,
},
);

// Local shortcuts for tool invocation approval/rejection
const approveToolInvocationShortcut: Shortcut = {
description: "approveToolInvocation",
Expand Down Expand Up @@ -876,6 +887,10 @@ export const ToolMessagePart = memo(
return <WebSearchToolInvocation part={part} />;
}

if (toolName === DefaultToolName.Http) {
return <HttpRequestToolInvocation part={part} />;
}

if (toolName === ImageToolName) {
return <ImageGeneratorToolInvocation part={part} />;
}
Expand Down
Loading
Loading