feat: complete UI overhaul (liquid glass theme, i18n, FontAwesome)
This commit is contained in:
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user