feat: use s/r for gpt-5 (#7153)
This commit is contained in:
parent
3b61c41e88
commit
c0e9cfd556
1 changed files with 3 additions and 4 deletions
|
|
@ -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<
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue