mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Extensions: Add global CFG support
CFG is bundled as an extension which is more flexible in terms of storing settings and consolidating code. Global CFG is currently supported and the old power user setting is auto-migrated. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
9
public/scripts/extensions/cfg/util.js
Normal file
9
public/scripts/extensions/cfg/util.js
Normal file
@ -0,0 +1,9 @@
|
||||
import { extension_settings } from "../../extensions.js"
|
||||
|
||||
// TODO: Update to use per-chat and per-character CFG
|
||||
export function getCfg() {
|
||||
return {
|
||||
guidanceScale: extension_settings.cfg.global.guidance_scale,
|
||||
negativePrompt: extension_settings.cfg.global.negative_prompt
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user