Rename PromptManagerModule to PromptManager

The one place where it was imported renamed it to PromptManager anyway.
This commit is contained in:
valadaptive 2023-12-03 12:14:56 -05:00
parent 5c175bc647
commit b8b24540a9
2 changed files with 7 additions and 7 deletions

View File

@ -178,7 +178,7 @@ class PromptCollection {
} }
} }
class PromptManagerModule { class PromptManager {
constructor() { constructor() {
this.systemPrompts = [ this.systemPrompts = [
'main', '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. * 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. * 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} moduleConfiguration - Configuration object for the PromptManager.
* @param {Object} serviceSettings - Service settings object for the PromptManagerModule. * @param {Object} serviceSettings - Service settings object for the PromptManager.
*/ */
init(moduleConfiguration, serviceSettings) { init(moduleConfiguration, serviceSettings) {
this.configuration = Object.assign(this.configuration, moduleConfiguration); this.configuration = Object.assign(this.configuration, moduleConfiguration);
@ -1905,7 +1905,7 @@ const promptManagerDefaultPromptOrder = [
]; ];
export { export {
PromptManagerModule, PromptManager,
registerPromptManagerMigration, registerPromptManagerMigration,
chatCompletionDefaultPrompts, chatCompletionDefaultPrompts,
promptManagerDefaultPromptOrders, promptManagerDefaultPromptOrders,

View File

@ -38,7 +38,7 @@ import {
INJECTION_POSITION, INJECTION_POSITION,
Prompt, Prompt,
promptManagerDefaultPromptOrders, promptManagerDefaultPromptOrders,
PromptManagerModule as PromptManager, PromptManager,
} from './PromptManager.js'; } from './PromptManager.js';
import { getCustomStoppingStrings, persona_description_positions, power_user } from './power-user.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. * One-time setup for prompt manager module.
* *
* @param openAiSettings * @param openAiSettings
* @returns {PromptManagerModule|null} * @returns {PromptManager|null}
*/ */
function setupChatCompletionPromptManager(openAiSettings) { function setupChatCompletionPromptManager(openAiSettings) {
// Do not set up prompt manager more than once // Do not set up prompt manager more than once