From 6ee7d7c96f1002674a5dcbc2ce469200184e9e04 Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 10 Jun 2025 08:09:37 +0200 Subject: [PATCH 001/166] [OpenAIComp] Add error handling for empty choices in parsed response --- js/workers/model-worker-openai_comp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/workers/model-worker-openai_comp.js b/js/workers/model-worker-openai_comp.js index 7df91d49..4882800f 100644 --- a/js/workers/model-worker-openai_comp.js +++ b/js/workers/model-worker-openai_comp.js @@ -113,6 +113,10 @@ self.onmessage = async function(event) { for (const parsedLine of parsedLines) { const { choices } = parsedLine; + if (!choices || choices.length === 0) { + taLog.error("No choices found in parsed line: " + JSON.stringify(parsedLine)); + continue; + } const { delta } = choices[0]; const { content } = delta; // Update the UI with the new content From 1777334ad09387811ac9aca510371a376a09ca43 Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 10 Jun 2025 08:10:31 +0200 Subject: [PATCH 002/166] version set to 3.6.0 --- CHANGELOG.md | 4 ++++ manifest.json | 2 +- options/mzta-release-notes.html | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0f65fe1..8d6d7a12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ +

Version 3.6.0 - ??/??/2025

+

Version 3.5.2 - 05/06/2025