mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #1439 from valadaptive/prompt-manager-class
Convert PromptManagerModule to a class
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user