Elffuss BraidHub

kikocis/continue public

feat: use s/r for gpt-5 (#7153)

Changesetfa13c9028388f818bc4a3fac19f4c0dbe2b90954ad201d43b37c3043dd2118e8
AuthorPatrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-08-14 12:00 -07:00
CommitterGitHub <noreply@github.com> · 2025-08-14 12:00 -07:00
Parentsf93faf7895c2

Browse the files at this changeset

1 file changed

modified gui/src/redux/thunks/streamNormalInput.ts +3 −4
@@ -3,7 +3,6 @@
33 import { getRuleId } from "core/llm/rules/getSystemMessageWithRules";
44 import { ToCoreProtocol } from "core/protocol";
55 import { BuiltInToolNames } from "core/tools/builtIn";
6-import posthog from "posthog-js";
76 import { selectActiveTools } from "../selectors/selectActiveTools";
87 import { selectUseSystemMessageTools } from "../selectors/selectUseSystemMessageTools";
98 import { selectSelectedChatModel } from "../slices/configSlice";
@@ -27,9 +26,9 @@
2726 import { interceptSystemToolCalls } from "core/tools/systemMessageTools/interceptSystemToolCalls";
2827 import { SystemMessageToolCodeblocksFramework } from "core/tools/systemMessageTools/toolCodeblocks";
2928 import { selectCurrentToolCalls } from "../selectors/selectToolCalls";
29+import { DEFAULT_TOOL_SETTING } from "../slices/uiSlice";
3030 import { getBaseSystemMessage } from "../util/getBaseSystemMessage";
3131 import { callToolById } from "./callToolById";
32-import { DEFAULT_TOOL_SETTING } from "../slices/uiSlice";
3332 /**
3433 * Handles the execution of tool calls that may be automatically accepted.
3534 * Sets all tools as generated first, then executes auto-approved tool calls.
@@ -126,8 +125,8 @@
126125 * Determines whether to use search and replace tool instead of edit file
127126 * Right now we only know that this is reliable with Claude models
128127 */
129-function shouldUseFindReplaceEdits(model: ModelDescription): boolean {
130- return model.model.includes("claude");
128+function shouldUseFindReplaceEdits({ model }: ModelDescription): boolean {
129+ return model.includes("claude") || model.includes("gpt-5");
131130 }
132131
133132 export const streamNormalInput = createAsyncThunk<