mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
New exported methods: loadWorldInfo(), saveWorldInfo(), updateWorldInfoList(), convertCharacterBook()
This commit is contained in:
@@ -70,6 +70,7 @@ import { tokenizers, getTextTokens, getTokenCount, getTokenCountAsync, getTokeni
|
||||
import { ToolManager } from './tool-calling.js';
|
||||
import { timestampToMoment, uuidv4 } from './utils.js';
|
||||
import { getGlobalVariable, getLocalVariable, setGlobalVariable, setLocalVariable } from './variables.js';
|
||||
import { convertCharacterBook, loadWorldInfo, saveWorldInfo, updateWorldInfoList } from './world-info.js';
|
||||
|
||||
export function getContext() {
|
||||
return {
|
||||
@@ -186,6 +187,10 @@ export function getContext() {
|
||||
set: setGlobalVariable,
|
||||
},
|
||||
},
|
||||
loadWorldInfo,
|
||||
saveWorldInfo,
|
||||
updateWorldInfoList,
|
||||
convertCharacterBook,
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user