mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-07 07:06:05 +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() {
|
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,
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user