fix: remove duplicate tools from script ai chat (#5880)

This commit is contained in:
HugoCasa
2025-06-05 19:18:50 +02:00
committed by GitHub
parent dc1d09f946
commit ccb1f1a1d6

View File

@@ -306,7 +306,7 @@ export function prepareScriptTools(
language: ScriptLang | 'bunnative',
context: ContextElement[]
): Tool<ScriptChatHelpers>[] {
const tools: Tool<ScriptChatHelpers>[] = [resourceTypeTool, dbSchemaTool]
const tools: Tool<ScriptChatHelpers>[] = []
if (['python3', 'php', 'bun', 'deno', 'nativets', 'bunnative'].includes(language)) {
tools.push(resourceTypeTool)
}