fix: remove duplicate tools from script ai chat (#5880)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user