move spoof prompt to support anthropic with custom modes (#1031)

This commit is contained in:
aron
2025-07-15 22:16:27 -03:00
committed by GitHub
parent fdfd4d69d3
commit 1bbd84008f
2 changed files with 4 additions and 3 deletions

View File

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