mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-08 07:32:34 +01:00
Print stack to console on chatcompletion error
This commit is contained in:
parent
ea7268febd
commit
e09a7d1e7a
@ -806,8 +806,10 @@ function prepareOpenAIMessages({
|
|||||||
promptManager.error = 'The name of at least one character contained whitespaces or special characters. Please check your user and character name.';
|
promptManager.error = 'The name of at least one character contained whitespaces or special characters. Please check your user and character name.';
|
||||||
} else {
|
} else {
|
||||||
toastr.error('An unknown error occurred while counting tokens. Further information may be available in console.')
|
toastr.error('An unknown error occurred while counting tokens. Further information may be available in console.')
|
||||||
chatCompletion.log('Unexpected error:');
|
chatCompletion.log('----- Unexpected error while preparing prompts -----');
|
||||||
chatCompletion.log(error);
|
chatCompletion.log(error);
|
||||||
|
chatCompletion.log(error.stack);
|
||||||
|
chatCompletion.log('----------------------------------------------------');
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
// Pass chat completion to prompt manager for inspection
|
// Pass chat completion to prompt manager for inspection
|
||||||
|
Loading…
Reference in New Issue
Block a user