diff --git a/apps/open-swe/src/graphs/programmer/nodes/generate-message/index.ts b/apps/open-swe/src/graphs/programmer/nodes/generate-message/index.ts index d1e6988e..a1c63e2c 100644 --- a/apps/open-swe/src/graphs/programmer/nodes/generate-message/index.ts +++ b/apps/open-swe/src/graphs/programmer/nodes/generate-message/index.ts @@ -80,15 +80,13 @@ const formatStaticInstructionsPrompt = ( state: GraphState, isAnthropicModel: boolean, ) => { - return isAnthropicModel - ? STATIC_ANTHROPIC_SYSTEM_INSTRUCTIONS - : STATIC_SYSTEM_INSTRUCTIONS.replaceAll( - "{REPO_DIRECTORY}", - getRepoAbsolutePath(state.targetRepository), - ).replaceAll( - "{CUSTOM_RULES}", - formatCustomRulesPrompt(state.customRules), - ); + return ( + isAnthropicModel + ? STATIC_ANTHROPIC_SYSTEM_INSTRUCTIONS + : STATIC_SYSTEM_INSTRUCTIONS + ) + .replaceAll("{REPO_DIRECTORY}", getRepoAbsolutePath(state.targetRepository)) + .replaceAll("{CUSTOM_RULES}", formatCustomRulesPrompt(state.customRules)); }; const formatCacheablePrompt = (