Skip to content

Commit e1ed15c

Browse files
authored
Merge pull request #58 from thedadams/gh-767
chore: use gateway version of tools that use credentials
2 parents 1486771 + 5ef0bec commit e1ed15c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

components/edit/configure/imports/toolCatalog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ const featuredTools: FeaturedTools = {
5050
{
5151
name: "Vision",
5252
description: "Allows the assistant to interact with images.",
53-
url: "github.com/gptscript-ai/gpt4-v-vision",
53+
url: "github.com/gptscript-ai/gpt4-v-vision@gateway",
5454
tags: ["vision", "images", "ai"],
5555
icon: <BsEye className="text-7xl"/>
5656
},
5757
{
5858
name: "Image Generation",
5959
description: "Allows the assistant to generate images.",
60-
url: "github.com/gptscript-ai/dalle-image-generation",
60+
url: "github.com/gptscript-ai/dalle-image-generation@gateway",
6161
tags: ["images", "ai", "generation"],
6262
icon: <FaPaintBrush className="text-7xl"/>
6363
},
@@ -124,7 +124,7 @@ const featuredTools: FeaturedTools = {
124124
{
125125
name: "Knowledge",
126126
description: "Provides the assistant with information based context.",
127-
url: "github.com/gptscript-ai/knowledge",
127+
url: "github.com/gptscript-ai/knowledge@gateway",
128128
tags: ["knowledge", "rag"],
129129
icon: <GoBook className="text-7xl"/>,
130130
},

components/script/chatBar/commands.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ export default function Commands({text, setText, isOpen, setIsOpen, children }:
110110
})
111111
.finally(() => {
112112
setMessages((prev) => [...prev, ...addedMessages])
113-
if (!tool || tool.tools?.includes("github.com/gptscript-ai/knowledge")) return;
114-
setTool((prev) => ({...prev, tools: [...prev.tools || [], "github.com/gptscript-ai/knowledge"]}));
115-
socket?.emit("addTool", "github.com/gptscript-ai/knowledge");
113+
if (!tool || tool.tools?.includes("github.com/gptscript-ai/knowledge@gateway")) return;
114+
setTool((prev) => ({...prev, tools: [...prev.tools || [], "github.com/gptscript-ai/knowledge@gateway"]}));
115+
socket?.emit("addTool", "github.com/gptscript-ai/knowledge@gateway");
116116
})
117117
);
118118
}

0 commit comments

Comments
 (0)