Przeglądaj źródła

fix double system prompt

Dax Raad 7 miesięcy temu
rodzic
commit
8e5607f9c0
1 zmienionych plików z 0 dodań i 1 usunięć
  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)
       })(),
     )
-    system.push(...(mode.prompt ? [mode.prompt] : SystemPrompt.provider(input.modelID)))
     system.push(...(await SystemPrompt.environment()))
     system.push(...(await SystemPrompt.custom()))
     // max 2 system prompt messages for caching purposes