Refactor tools

This commit is contained in:
Saoud Rizwan
2024-09-24 13:54:36 -04:00
parent 8b69e2a8b5
commit b347acf4f0
2 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ import { ClaudeAskResponse } from "../shared/WebviewMessage"
import { findLast, findLastIndex } from "../utils/array"
import { arePathsEqual } from "../utils/path"
import { parseMentions } from "./mentions"
import { tools } from "./prompts/tools"
import { TOOLS } from "./prompts/tools"
import { truncateHalfConversation } from "./sliding-window"
import { ClaudeDevProvider } from "./webview/ClaudeDevProvider"
@@ -1464,7 +1464,7 @@ ${this.customInstructions.trim()}
const { message, userCredits } = await this.api.createMessage(
systemPrompt,
this.apiConversationHistory,
tools(cwd, this.api.getModel().info.supportsImages)
TOOLS(cwd, this.api.getModel().info.supportsImages)
)
if (userCredits !== undefined) {
console.log("Updating credits", userCredits)