fix: use valid Zen summaries for notes

This commit is contained in:
Bohdan Triapitsyn
2026-04-30 13:07:37 +03:00
parent fa71954ef1
commit bbd83d60c6
16 changed files with 430 additions and 62 deletions
+1 -2
View File
@@ -52,13 +52,12 @@ export async function summarizeText(
}
try {
const zenModel = store.settingsZenModel;
const response = await fetch(resolveSummarizeUrl(), {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ text, threshold, maxLength, mode, ...(zenModel ? { zenModel } : {}) }),
body: JSON.stringify({ text, threshold, maxLength, mode }),
});
if (!response.ok) {