mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 20:20:42 +00:00
rate limiter polishing, file download polishing
This commit is contained in:
parent
96b6e56869
commit
7654707963
7 changed files with 19 additions and 90 deletions
|
|
@ -1,8 +1,6 @@
|
|||
from python.helpers.api import ApiHandler, Request, Response
|
||||
from python.helpers.file_browser import FileBrowser
|
||||
from python.helpers import runtime
|
||||
import python.api.get_work_dir_files as get_work_dir_files_module
|
||||
|
||||
|
||||
class GetWorkDirFiles(ApiHandler):
|
||||
|
||||
|
|
@ -21,7 +19,7 @@ class GetWorkDirFiles(ApiHandler):
|
|||
|
||||
# browser = FileBrowser()
|
||||
# result = browser.get_files(current_path)
|
||||
result = await runtime.call_development_function(get_work_dir_files_module.get_files, current_path)
|
||||
result = await runtime.call_development_function(get_files, current_path)
|
||||
|
||||
return {"data": result}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue