This build was committed by a bot.

This commit is contained in:
github-actions[bot]
2026-09-10 05:04:58 +00:00
parent 599989fbed
commit 18aa73e9c8
3 changed files with 5 additions and 3 deletions

View File

@@ -40,7 +40,8 @@ var buildBody = () => {
role: "system",
content: mPrompt
});
const sPrompt = (SUNE.system_prompt || "").trim();
const modelName = SUNE.model.replace(/^(or:|oai:|g:|cla:|cf:)/, "").replace(/^[^/]*\//, "").replace(/(?::online|:free)+$/, "");
const sPrompt = (SUNE.system_prompt || "").trim().replaceAll("{{model_name}}", () => modelName);
if (sPrompt) msgs.push({
role: "system",
content: sPrompt