Browse Source

fix double system prompt

Dax Raad 7 months ago
parent
commit
8e5607f9c0
1 changed files with 0 additions and 1 deletions
  1. 0 1
      packages/opencode/src/session/index.ts

+ 0 - 1
packages/opencode/src/session/index.ts

@@ -626,7 +626,6 @@ export namespace Session {
         return SystemPrompt.provider(input.modelID)
         return SystemPrompt.provider(input.modelID)
       })(),
       })(),
     )
     )
-    system.push(...(mode.prompt ? [mode.prompt] : SystemPrompt.provider(input.modelID)))
     system.push(...(await SystemPrompt.environment()))
     system.push(...(await SystemPrompt.environment()))
     system.push(...(await SystemPrompt.custom()))
     system.push(...(await SystemPrompt.custom()))
     // max 2 system prompt messages for caching purposes
     // max 2 system prompt messages for caching purposes