mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Apply character specific prompt overrides
Jailbreak and main
This commit is contained in:
@ -575,6 +575,7 @@ async function prepareOpenAIMessages({
|
||||
try {
|
||||
populateChatCompletion(prompts, chatCompletion, {bias, quietPrompt, type});
|
||||
} catch (error) {
|
||||
toastr.error('An error occurred while counting tokens.')
|
||||
if (error instanceof TokenBudgetExceededError) {
|
||||
chatCompletion.log('Token budget exceeded.');
|
||||
promptManager.error = 'Not enough free tokens for mandatory prompts. Raise your token Limit or disable custom prompts.';
|
||||
|
Reference in New Issue
Block a user