mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-05 21:46:49 +01:00
Rename PromptManagerModule to PromptManager
The one place where it was imported renamed it to PromptManager anyway.
This commit is contained in:
parent
5c175bc647
commit
b8b24540a9
@ -178,7 +178,7 @@ class PromptCollection {
|
||||
}
|
||||
}
|
||||
|
||||
class PromptManagerModule {
|
||||
class PromptManager {
|
||||
constructor() {
|
||||
this.systemPrompts = [
|
||||
'main',
|
||||
@ -284,13 +284,13 @@ class PromptManagerModule {
|
||||
|
||||
|
||||
/**
|
||||
* Initializes the PromptManagerModule with provided configuration and service settings.
|
||||
* Initializes the PromptManager with provided configuration and service settings.
|
||||
*
|
||||
* Sets up various handlers for user interactions, event listeners and initial rendering of prompts.
|
||||
* It is also responsible for preparing prompt edit form buttons, managing popup form close and clear actions.
|
||||
*
|
||||
* @param {Object} moduleConfiguration - Configuration object for the PromptManagerModule.
|
||||
* @param {Object} serviceSettings - Service settings object for the PromptManagerModule.
|
||||
* @param {Object} moduleConfiguration - Configuration object for the PromptManager.
|
||||
* @param {Object} serviceSettings - Service settings object for the PromptManager.
|
||||
*/
|
||||
init(moduleConfiguration, serviceSettings) {
|
||||
this.configuration = Object.assign(this.configuration, moduleConfiguration);
|
||||
@ -1905,7 +1905,7 @@ const promptManagerDefaultPromptOrder = [
|
||||
];
|
||||
|
||||
export {
|
||||
PromptManagerModule,
|
||||
PromptManager,
|
||||
registerPromptManagerMigration,
|
||||
chatCompletionDefaultPrompts,
|
||||
promptManagerDefaultPromptOrders,
|
||||
|
@ -38,7 +38,7 @@ import {
|
||||
INJECTION_POSITION,
|
||||
Prompt,
|
||||
promptManagerDefaultPromptOrders,
|
||||
PromptManagerModule as PromptManager,
|
||||
PromptManager,
|
||||
} from './PromptManager.js';
|
||||
|
||||
import { getCustomStoppingStrings, persona_description_positions, power_user } from './power-user.js';
|
||||
@ -458,7 +458,7 @@ function setOpenAIMessageExamples(mesExamplesArray) {
|
||||
* One-time setup for prompt manager module.
|
||||
*
|
||||
* @param openAiSettings
|
||||
* @returns {PromptManagerModule|null}
|
||||
* @returns {PromptManager|null}
|
||||
*/
|
||||
function setupChatCompletionPromptManager(openAiSettings) {
|
||||
// Do not set up prompt manager more than once
|
||||
|
Loading…
Reference in New Issue
Block a user