#1891 Fix JWT Scale generation

This commit is contained in:
Cohee 2024-03-04 22:24:50 +02:00
parent 24b33a5f77
commit dc32884ced

View File

@ -4534,6 +4534,10 @@ function parseAndSaveLogprobs(data, continueFrom) {
* @returns {string} Extracted message
*/
function extractMessageFromData(data) {
if (typeof data === 'string') {
return data;
}
switch (main_api) {
case 'kobold':
return data.results[0].text;