Align custom world info rendering with ST runtime

This commit is contained in:
Hao19911125
2026-04-07 15:15:33 +08:00
parent a2bde74583
commit f21f2c4c1d
8 changed files with 431 additions and 1115 deletions

View File

@@ -21,6 +21,9 @@ const scriptShimSource = [
"export function getRequestHeaders() {",
" return { 'Content-Type': 'application/json' };",
"}",
"export function substituteParamsExtended(text) {",
" return String(text ?? '');",
"}",
].join("\n");
const openAiShimSource = [
"export const chat_completion_sources = { CUSTOM: 'custom', OPENAI: 'openai' };",