fix double system prompt

This commit is contained in:
Dax Raad
2025-07-25 10:28:42 -04:00
parent d6b3bb0807
commit 8e5607f9c0

View File

@@ -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