fix: refine search quota and upload flow
This commit is contained in:
parent
4563fad2d9
commit
7e2550880d
@ -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"),
|
||||
|
||||
@ -166,7 +166,6 @@ const triggerQuickUpload = () => {
|
||||
if (!props.isConnected || props.uploading) {
|
||||
return;
|
||||
}
|
||||
fileUploadInput.value?.click();
|
||||
emit('quick-upload');
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user