mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix logprobs parser on NovelAI non-streaming
This commit is contained in:
@ -374,6 +374,11 @@ function withVirtualWhitespace(text, span) {
|
||||
* @param {string | null} continueFrom - for 'continue' generations, the prompt
|
||||
*/
|
||||
export function saveLogprobsForActiveMessage(logprobs, continueFrom) {
|
||||
if (!logprobs) {
|
||||
// non-streaming APIs could return null data
|
||||
return;
|
||||
}
|
||||
|
||||
convertTokenIdLogprobsToText(logprobs);
|
||||
|
||||
const msgId = chat.length - 1;
|
||||
|
Reference in New Issue
Block a user