Combine functions
| @@ -5669,11 +5669,11 @@ function parseAndSaveLogprobs(data, continueFrom) { | ||
| 5669 | 5669 | } |
| 5670 | 5670 | |
| 5671 | 5671 | /** |
| 5672 | 5672 | * GetsExtracts the text contextmessage from the response data. |
| 5673 | 5673 | * @param {object} data Response JSON data |
| 5674 | 5674 | * @returns {string} Extracted textmessage |
| 5675 | 5675 | */ |
| 5676 | 5676 | function getTextContextFromDataextractMessageFromData(data) { |
| 5677 | 5677 | if (typeof data === 'string') { |
| 5678 | 5678 | return data; |
| 5679 | 5679 | } |
| @@ -5695,17 +5695,6 @@ function getTextContextFromData(data) { | ||
| 5695 | 5695 | } |
| 5696 | 5696 | |
| 5697 | 5697 | /** |
| 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 | -/** | |
| 5709 | 5698 | * Extracts the reasoning from the response data. |
| 5710 | 5699 | * @param {object} data Response data |
| 5711 | 5700 | * @returns {string} Extracted reasoning |