fix: refine search quota and upload flow

This commit is contained in:
JOJO 2025-11-27 19:36:09 +08:00
parent 4563fad2d9
commit 7e2550880d
2 changed files with 3 additions and 4 deletions

View File

@ -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"),

View File

@ -166,7 +166,6 @@ const triggerQuickUpload = () => {
if (!props.isConnected || props.uploading) {
return;
}
fileUploadInput.value?.click();
emit('quick-upload');
};