mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 11:40:47 +00:00
setting refactor - backend conversions
This commit is contained in:
parent
59e424abce
commit
ef82fc8bb9
5 changed files with 111 additions and 22 deletions
|
|
@ -4,8 +4,9 @@ from python.helpers import settings
|
|||
|
||||
class GetSettings(ApiHandler):
|
||||
async def process(self, input: dict, request: Request) -> dict | Response:
|
||||
set = settings.convert_out(settings.get_settings())
|
||||
return {"settings": set}
|
||||
backend = settings.get_settings()
|
||||
out = settings.convert_out(backend)
|
||||
return dict(out)
|
||||
|
||||
@classmethod
|
||||
def get_methods(cls) -> list[str]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue