diff --git a/core/main_terminal.py b/core/main_terminal.py index 7077cd1..3d0fe36 100644 --- a/core/main_terminal.py +++ b/core/main_terminal.py @@ -1951,11 +1951,11 @@ class MainTerminal: elif tool_name == "web_search": allowed, quota_info = self.record_search_call() if not allowed: - return { + return json.dumps({ "success": False, - "error": f"搜索配额已用尽,将在 {quota_info.get('reset_at')} 重置。", + "error": f"搜索配额已用尽,将在 {quota_info.get('reset_at')} 重置。请向用户说明情况并提供替代方案。", "quota": quota_info - } + }, ensure_ascii=False) search_response = await self.search_engine.search_with_summary( query=arguments["query"], max_results=arguments.get("max_results"), diff --git a/static/src/components/input/InputComposer.vue b/static/src/components/input/InputComposer.vue index 77e3a3c..11f314f 100644 --- a/static/src/components/input/InputComposer.vue +++ b/static/src/components/input/InputComposer.vue @@ -166,7 +166,6 @@ const triggerQuickUpload = () => { if (!props.isConnected || props.uploading) { return; } - fileUploadInput.value?.click(); emit('quick-upload'); };