diff --git a/gui/src/redux/thunks/streamNormalInput.ts b/gui/src/redux/thunks/streamNormalInput.ts index e2f645858..e5f7ef2e9 100644 --- a/gui/src/redux/thunks/streamNormalInput.ts +++ b/gui/src/redux/thunks/streamNormalInput.ts @@ -3,7 +3,6 @@ import { LLMFullCompletionOptions, ModelDescription, Tool } from "core"; import { getRuleId } from "core/llm/rules/getSystemMessageWithRules"; import { ToCoreProtocol } from "core/protocol"; import { BuiltInToolNames } from "core/tools/builtIn"; -import posthog from "posthog-js"; import { selectActiveTools } from "../selectors/selectActiveTools"; import { selectUseSystemMessageTools } from "../selectors/selectUseSystemMessageTools"; import { selectSelectedChatModel } from "../slices/configSlice"; @@ -27,9 +26,9 @@ import { addSystemMessageToolsToSystemMessage } from "core/tools/systemMessageTo import { interceptSystemToolCalls } from "core/tools/systemMessageTools/interceptSystemToolCalls"; import { SystemMessageToolCodeblocksFramework } from "core/tools/systemMessageTools/toolCodeblocks"; import { selectCurrentToolCalls } from "../selectors/selectToolCalls"; +import { DEFAULT_TOOL_SETTING } from "../slices/uiSlice"; import { getBaseSystemMessage } from "../util/getBaseSystemMessage"; import { callToolById } from "./callToolById"; -import { DEFAULT_TOOL_SETTING } from "../slices/uiSlice"; /** * Handles the execution of tool calls that may be automatically accepted. * Sets all tools as generated first, then executes auto-approved tool calls. @@ -126,8 +125,8 @@ function filterToolsForModel( * Determines whether to use search and replace tool instead of edit file * Right now we only know that this is reliable with Claude models */ -function shouldUseFindReplaceEdits(model: ModelDescription): boolean { - return model.model.includes("claude"); +function shouldUseFindReplaceEdits({ model }: ModelDescription): boolean { + return model.includes("claude") || model.includes("gpt-5"); } export const streamNormalInput = createAsyncThunk<