feat: extract str_replace tool (#1710)

This commit is contained in:
yetone
2025-03-25 18:43:57 +08:00
committed by GitHub
parent 8c4244b940
commit a2aec079c9
7 changed files with 186 additions and 125 deletions

View File

@@ -2551,13 +2551,7 @@ function Sidebar:create_input_container(opts)
local mode = "planning"
if Config.behaviour.enable_cursor_planning_mode then mode = "cursor-planning" end
local provider_config = Config.get_provider_config(Config.provider)
local is_claude_model = provider_config
and provider_config.model
and (provider_config.model:lower():match("claude") or Config.provider:lower():match("claude"))
if Config.behaviour.enable_claude_text_editor_tool_mode and is_claude_model then
mode = "claude-text-editor-tool"
end
if Config.behaviour.enable_claude_text_editor_tool_mode then mode = "claude-text-editor-tool" end
---@type AvanteGeneratePromptsOptions
local prompts_opts = {