Combine functions

e3885c2b5c9bd1dfe5ce6d8429de65e43e3ecaf7

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +4 -15Showing whitespace changes
public/script.js+4 -15
@@ -5669,11 +5669,11 @@ function parseAndSaveLogprobs(data, continueFrom) {
56695669}
56705670
56715671/**
56725672 * GetsExtracts the text contextmessage from the response data.
56735673 * @param {object} data Response JSON data
56745674 * @returns {string} Extracted textmessage
56755675 */
56765676function getTextContextFromDataextractMessageFromData(data) {
56775677 if (typeof data === 'string') {
56785678 return data;
56795679 }
@@ -5695,17 +5695,6 @@ function getTextContextFromData(data) {
56955695}
56965696
56975697/**
5698- * Extracts the message from the response data.
5699- * @param {object} data Response data
5700- * @returns {string} Extracted message
5701- */
5702-function extractMessageFromData(data){
5703- const content = String(getTextContextFromData(data) ?? '');
5704-
5705- return content;
5706-}
5707-
5708-/**
57095698 * Extracts the reasoning from the response data.
57105699 * @param {object} data Response data
57115700 * @returns {string} Extracted reasoning