mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
New context methods, added type parameters to message events
This commit is contained in:
@ -48,6 +48,7 @@ import {
|
||||
printMessages,
|
||||
clearChat,
|
||||
unshallowCharacter,
|
||||
deleteLastMessage,
|
||||
} from '../script.js';
|
||||
import {
|
||||
extension_settings,
|
||||
@ -106,6 +107,7 @@ export function getContext() {
|
||||
eventSource,
|
||||
eventTypes: event_types,
|
||||
addOneMessage,
|
||||
deleteLastMessage,
|
||||
generate: Generate,
|
||||
sendStreamingRequest,
|
||||
sendGenerationRequest,
|
||||
@ -147,6 +149,9 @@ export function getContext() {
|
||||
unregisterFunctionTool: ToolManager.unregisterFunctionTool.bind(ToolManager),
|
||||
isToolCallingSupported: ToolManager.isToolCallingSupported.bind(ToolManager),
|
||||
canPerformToolCalls: ToolManager.canPerformToolCalls.bind(ToolManager),
|
||||
registerFunctionToolsOpenAI: ToolManager.registerFunctionToolsOpenAI.bind(ToolManager),
|
||||
invokeFunctionTools: ToolManager.invokeFunctionTools.bind(ToolManager),
|
||||
saveFunctionToolInvocations: ToolManager.saveFunctionToolInvocations.bind(ToolManager),
|
||||
registerDebugFunction,
|
||||
/** @deprecated Use renderExtensionTemplateAsync instead. */
|
||||
renderExtensionTemplate,
|
||||
|
Reference in New Issue
Block a user