优化大模型逐字输出和UI上漏洞

This commit is contained in:
xiaobao
2026-01-28 21:50:35 +08:00
parent e3fb970fa3
commit 8a641f8d46
2 changed files with 111 additions and 97 deletions

View File

@@ -1192,10 +1192,7 @@
font-size: 13px;
}
.thinking-loading::after {
content: '';
animation: dots 0.8s infinite;
}
@keyframes dots {
0% { content: ''; }
@@ -2421,6 +2418,7 @@
function sendMessage(isPre) {
debugger;
if (controller) {
showToast("请先停止对话");
@@ -2453,8 +2451,9 @@
addMessage('', "user", url);
} else {
addMessage('', "user", sendParam.imageBase64);
sendParam.imageBase64 = '';
}
sendParam.imageBase64 = '';
fileInput.value = "";
}
@@ -2606,6 +2605,7 @@ const getAiResponse = async (img) => {
body: JSON.stringify(sendParam),
signal: controller.signal,
});
sendParam.imageBase64 ='';
} catch (err) {
loadingDiv.textContent = "请求中断";
if (controller) {