feat: complete UI overhaul (liquid glass theme, i18n, FontAwesome)

This commit is contained in:
2026-06-03 22:00:37 +02:00
parent e5a9936066
commit d34d34565f
23 changed files with 732 additions and 580 deletions
+5 -1
View File
@@ -179,10 +179,14 @@ async function callProvider(messages, opts = {}, signal) {
}
const data = await resp.json();
const content = data.choices?.[0]?.message?.content;
let content = data.choices?.[0]?.message?.content;
if (typeof content !== 'string' || !content.trim()) {
throw new Error('Provider response did not include a message');
}
// Strip <think> blocks generated by reasoning models (like MiniMax-M3 or DeepSeek-R1)
content = content.replace(/<think>[\s\S]*?<\/think>\s*/gi, '').trim();
return content;
}