add support for modified gemini-cli system prompt (#1033)

Co-authored-by: Dax Raad <d@ironbay.co>
This commit is contained in:
Stephen Murray
2025-07-15 21:13:11 -04:00
committed by GitHub
parent 7f659cce36
commit fdfd4d69d3
2 changed files with 157 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import os from "os"
import PROMPT_ANTHROPIC from "./prompt/anthropic.txt"
import PROMPT_BEAST from "./prompt/beast.txt"
import PROMPT_GEMINI from "./prompt/gemini.txt"
import PROMPT_ANTHROPIC_SPOOF from "./prompt/anthropic_spoof.txt"
import PROMPT_SUMMARIZE from "./prompt/summarize.txt"
import PROMPT_TITLE from "./prompt/title.txt"
@@ -16,6 +17,7 @@ export namespace SystemPrompt {
export function provider(providerID: string, modelID: string) {
if (providerID === "anthropic") return [PROMPT_ANTHROPIC_SPOOF.trim(), PROMPT_ANTHROPIC]
if (modelID.includes("gpt-") || modelID.includes("o1") || modelID.includes("o3")) return [PROMPT_BEAST]
if (modelID.includes("gemini-")) return [PROMPT_GEMINI]
return [PROMPT_ANTHROPIC]
}