Merge pull request #1439 from valadaptive/prompt-manager-class

Convert PromptManagerModule to a class
This commit is contained in:
Cohee
2023-12-03 21:52:27 +02:00
committed by GitHub
2 changed files with 1489 additions and 1486 deletions

View File

@ -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