Merge branch 'fix-for-search-rate-limits' of https://github.com/a-holm/OpenManus into fix-for-search-rate-limits

This commit is contained in:
a-holm 2025-03-18 21:53:34 +01:00
commit 855caad4d9
2 changed files with 11 additions and 11 deletions

View File

@ -156,11 +156,6 @@ class WebSearch(BaseTool):
if fallback in self._search_engine and fallback not in engine_order: if fallback in self._search_engine and fallback not in engine_order:
engine_order.append(fallback) engine_order.append(fallback)
# Add any remaining engines
for key in self._search_engine:
if key not in engine_order:
engine_order.append(key)
return engine_order return engine_order
@retry( @retry(

View File

@ -72,9 +72,14 @@ temperature = 0.0 # Controls randomness for vision mod
# Maximum number of times to retry all engines when all fail. Default is 3. # Maximum number of times to retry all engines when all fail. Default is 3.
#max_retries = 3 #max_retries = 3
# Fallback engine order. Default is ["DuckDuckGo", "Baidu"] - will try in this order after primary engine fails.
#fallback_engines = ["DuckDuckGo", "Baidu"] ## Sandbox configuration
# Seconds to wait before retrying all engines again when they all fail due to rate limits. Default is 60. #[sandbox]
#retry_delay = 60 #use_sandbox = false
# Maximum number of times to retry all engines when all fail. Default is 3. #image = "python:3.12-slim"
#max_retries = 3 #work_dir = "/workspace"
#memory_limit = "1g" # 512m
#cpu_limit = 2.0
#timeout = 300
#network_enabled = true
>>>>>>>>> Temporary merge branch 2