mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Declare prepareOpenAIMessages as synchronous
As there is no need for the function o be async anymore.
This commit is contained in:
@ -571,7 +571,7 @@ function prepareOpenAIMessages({
|
||||
if (authorsNote && authorsNote.content) mappedPrompts.push({role: 'system', content: authorsNote.content, identifier: 'authorsNote'});
|
||||
|
||||
// Create prompt objects and substitute markers
|
||||
mappedPrompts.forEach((prompt) => {
|
||||
mappedPrompts.forEach(prompt => {
|
||||
const newPrompt = promptManager.preparePrompt(prompt);
|
||||
const markerIndex = prompts.index(prompt.identifier);
|
||||
|
||||
|
Reference in New Issue
Block a user