| 1107 | /** | 1107 | /** |
| 1108 | * Parse reasoning in an array of swipe strings if auto-parsing is enabled. | 1108 | * Parse reasoning in an array of swipe strings if auto-parsing is enabled. |
| 1109 | * @param {string[]} swipes Array of swipe strings | 1109 | * @param {string[]} swipes Array of swipe strings |
| 1110 | * @param {{extra: {reasoning: string, reasoning_duration: number}}[]} swipeInfoArray Array of swipe info objects | 1110 | * @param {{extra: ReasoningMessageExtra}[]} swipeInfoArray Array of swipe info objects |
| 1111 | * @param {number?} duration Duration of the reasoning | 1111 | * @param {number?} duration Duration of the reasoning |
| | 1112 | * @typedef {object} ReasoningMessageExtra Extra reasoning data |
| | 1113 | * @property {string} reasoning Reasoning block |
| | 1114 | * @property {number} reasoning_duration Duration of the reasoning block |
| | 1115 | * @property {string} reasoning_type Type of reasoning block |
| 1112 | */ | 1116 | */ |
| 1113 | export function parseReasoningInSwipes(swipes, swipeInfoArray, duration) { | 1117 | export function parseReasoningInSwipes(swipes, swipeInfoArray, duration) { |
| 1114 | if (!power_user.reasoning.auto_parse) { | 1118 | if (!power_user.reasoning.auto_parse) { |