diff --git a/web/src/assets/providers/ark.png b/web/src/assets/providers/ark.png deleted file mode 100644 index a81fdbd7..00000000 Binary files a/web/src/assets/providers/ark.png and /dev/null differ diff --git a/web/src/assets/providers/bailian-color.svg b/web/src/assets/providers/bailian-color.svg new file mode 100644 index 00000000..9acccd08 --- /dev/null +++ b/web/src/assets/providers/bailian-color.svg @@ -0,0 +1 @@ +BaiLian \ No newline at end of file diff --git a/web/src/assets/providers/dashscope.png b/web/src/assets/providers/dashscope.png deleted file mode 100644 index 93d5a4a2..00000000 Binary files a/web/src/assets/providers/dashscope.png and /dev/null differ diff --git a/web/src/assets/providers/deepseek-color.svg b/web/src/assets/providers/deepseek-color.svg new file mode 100644 index 00000000..3fc23024 --- /dev/null +++ b/web/src/assets/providers/deepseek-color.svg @@ -0,0 +1 @@ +DeepSeek \ No newline at end of file diff --git a/web/src/assets/providers/deepseek.png b/web/src/assets/providers/deepseek.png deleted file mode 100644 index 7ee99e74..00000000 Binary files a/web/src/assets/providers/deepseek.png and /dev/null differ diff --git a/web/src/assets/providers/doubao-color.svg b/web/src/assets/providers/doubao-color.svg new file mode 100644 index 00000000..e2511454 --- /dev/null +++ b/web/src/assets/providers/doubao-color.svg @@ -0,0 +1 @@ +Doubao \ No newline at end of file diff --git a/web/src/assets/providers/lingyiwanwu.png b/web/src/assets/providers/lingyiwanwu.png deleted file mode 100644 index 5e535c2c..00000000 Binary files a/web/src/assets/providers/lingyiwanwu.png and /dev/null differ diff --git a/web/src/assets/providers/modelscope-color.svg b/web/src/assets/providers/modelscope-color.svg new file mode 100644 index 00000000..afbaa171 --- /dev/null +++ b/web/src/assets/providers/modelscope-color.svg @@ -0,0 +1 @@ +ModelScope \ No newline at end of file diff --git a/web/src/assets/providers/modelscope.png b/web/src/assets/providers/modelscope.png deleted file mode 100644 index cb4098d3..00000000 Binary files a/web/src/assets/providers/modelscope.png and /dev/null differ diff --git a/web/src/assets/providers/openai.png b/web/src/assets/providers/openai.png deleted file mode 100644 index f52d7317..00000000 Binary files a/web/src/assets/providers/openai.png and /dev/null differ diff --git a/web/src/assets/providers/openai.svg b/web/src/assets/providers/openai.svg new file mode 100644 index 00000000..50d94d6c --- /dev/null +++ b/web/src/assets/providers/openai.svg @@ -0,0 +1 @@ +OpenAI \ No newline at end of file diff --git a/web/src/assets/providers/openrouter.svg b/web/src/assets/providers/openrouter.svg new file mode 100644 index 00000000..e6cca2a8 --- /dev/null +++ b/web/src/assets/providers/openrouter.svg @@ -0,0 +1 @@ +OpenRouter \ No newline at end of file diff --git a/web/src/assets/providers/openrouterai.png b/web/src/assets/providers/openrouterai.png deleted file mode 100644 index 6138661c..00000000 Binary files a/web/src/assets/providers/openrouterai.png and /dev/null differ diff --git a/web/src/assets/providers/qianfan.png b/web/src/assets/providers/qianfan.png deleted file mode 100644 index d37c59bc..00000000 Binary files a/web/src/assets/providers/qianfan.png and /dev/null differ diff --git a/web/src/assets/providers/siliconcloud-color.svg b/web/src/assets/providers/siliconcloud-color.svg new file mode 100644 index 00000000..6b5f6d80 --- /dev/null +++ b/web/src/assets/providers/siliconcloud-color.svg @@ -0,0 +1 @@ +SiliconCloud \ No newline at end of file diff --git a/web/src/assets/providers/siliconflow.png b/web/src/assets/providers/siliconflow.png deleted file mode 100644 index bc8db4aa..00000000 Binary files a/web/src/assets/providers/siliconflow.png and /dev/null differ diff --git a/web/src/assets/providers/together-color.svg b/web/src/assets/providers/together-color.svg new file mode 100644 index 00000000..bb460ab5 --- /dev/null +++ b/web/src/assets/providers/together-color.svg @@ -0,0 +1 @@ +together.ai \ No newline at end of file diff --git a/web/src/assets/providers/together.ai.png b/web/src/assets/providers/together.ai.png deleted file mode 100644 index f5a6fdc0..00000000 Binary files a/web/src/assets/providers/together.ai.png and /dev/null differ diff --git a/web/src/assets/providers/zhipu-color.svg b/web/src/assets/providers/zhipu-color.svg new file mode 100644 index 00000000..0c6e61ce --- /dev/null +++ b/web/src/assets/providers/zhipu-color.svg @@ -0,0 +1 @@ +Zhipu \ No newline at end of file diff --git a/web/src/assets/providers/zhipuai.png b/web/src/assets/providers/zhipuai.png deleted file mode 100644 index 24f5bc9a..00000000 Binary files a/web/src/assets/providers/zhipuai.png and /dev/null differ diff --git a/web/src/components/AgentChatComponent.vue b/web/src/components/AgentChatComponent.vue index cbad97a4..198c01f7 100644 --- a/web/src/components/AgentChatComponent.vue +++ b/web/src/components/AgentChatComponent.vue @@ -614,7 +614,7 @@ const _processStreamChunk = (chunk, threadId) => { } // Reload messages to show any partial content saved by the backend - fetchThreadMessages({ agentId: currentAgentId.value, threadId: threadId }); + fetchThreadMessages({ agentId: currentAgentId.value, threadId: threadId, delay: 500 }); resetOnGoingConv(threadId); return true; case 'human_approval_required': @@ -643,7 +643,7 @@ const _processStreamChunk = (chunk, threadId) => { } } // 异步加载历史记录,保持当前消息显示直到历史记录加载完成 - fetchThreadMessages({ agentId: currentAgentId.value, threadId: threadId }) + fetchThreadMessages({ agentId: currentAgentId.value, threadId: threadId, delay: 500 }) .finally(() => { // 历史记录加载完成后,安全地清空当前进行中的对话 resetOnGoingConv(threadId, true); @@ -658,7 +658,7 @@ const _processStreamChunk = (chunk, threadId) => { if (chunkMessage) { message.info(chunkMessage); } - fetchThreadMessages({ agentId: currentAgentId.value, threadId: threadId }) + fetchThreadMessages({ agentId: currentAgentId.value, threadId: threadId, delay: 1000 }) .finally(() => { resetOnGoingConv(threadId, true); }); @@ -1116,7 +1116,7 @@ const handleSendOrStop = async () => { // 中断后刷新消息历史,确保显示最新的状态 try { - await fetchThreadMessages({ agentId: currentAgentId.value, threadId: threadId, delay: 100 }); + await fetchThreadMessages({ agentId: currentAgentId.value, threadId: threadId, delay: 500 }); message.info('已中断对话生成'); } catch (error) { console.error('刷新消息历史失败:', error); diff --git a/web/src/components/ModelProvidersComponent.vue b/web/src/components/ModelProvidersComponent.vue index 09115a41..b648b45f 100644 --- a/web/src/components/ModelProvidersComponent.vue +++ b/web/src/components/ModelProvidersComponent.vue @@ -174,7 +174,6 @@