Changesets · Branches · Tags · Compare
| Changeset | fa13c9028388f818bc4a3fac19f4c0dbe2b90954ad201d43b37c3043dd2118e8 |
|---|---|
| Author | Patrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-08-14 12:00 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-08-14 12:00 -07:00 |
| Parents | f93faf7895c2 |
1 file changed
modified gui/src/redux/thunks/streamNormalInput.ts +3 −4
| @@ -3,7 +3,6 @@ | ||
| 3 | 3 | import { getRuleId } from "core/llm/rules/getSystemMessageWithRules"; |
| 4 | 4 | import { ToCoreProtocol } from "core/protocol"; |
| 5 | 5 | import { BuiltInToolNames } from "core/tools/builtIn"; |
| 6 | -import posthog from "posthog-js"; | |
| 7 | 6 | import { selectActiveTools } from "../selectors/selectActiveTools"; |
| 8 | 7 | import { selectUseSystemMessageTools } from "../selectors/selectUseSystemMessageTools"; |
| 9 | 8 | import { selectSelectedChatModel } from "../slices/configSlice"; |
| @@ -27,9 +26,9 @@ | ||
| 27 | 26 | import { interceptSystemToolCalls } from "core/tools/systemMessageTools/interceptSystemToolCalls"; |
| 28 | 27 | import { SystemMessageToolCodeblocksFramework } from "core/tools/systemMessageTools/toolCodeblocks"; |
| 29 | 28 | import { selectCurrentToolCalls } from "../selectors/selectToolCalls"; |
| 29 | +import { DEFAULT_TOOL_SETTING } from "../slices/uiSlice"; | |
| 30 | 30 | import { getBaseSystemMessage } from "../util/getBaseSystemMessage"; |
| 31 | 31 | import { callToolById } from "./callToolById"; |
| 32 | -import { DEFAULT_TOOL_SETTING } from "../slices/uiSlice"; | |
| 33 | 32 | /** |
| 34 | 33 | * Handles the execution of tool calls that may be automatically accepted. |
| 35 | 34 | * Sets all tools as generated first, then executes auto-approved tool calls. |
| @@ -126,8 +125,8 @@ | ||
| 126 | 125 | * Determines whether to use search and replace tool instead of edit file |
| 127 | 126 | * Right now we only know that this is reliable with Claude models |
| 128 | 127 | */ |
| 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"); | |
| 131 | 130 | } |
| 132 | 131 | |
| 133 | 132 | export const streamNormalInput = createAsyncThunk< |