mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-08-16 03:44:59 +00:00
Update settings.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
01096c1813
commit
e52b0ecf43
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def get_default_value(name: str, value: T) -> T:
|
|||
if isinstance(value, bool):
|
||||
return env_value.strip().lower() in ('true', '1', 'yes', 'on') # type: ignore
|
||||
elif isinstance(value, dict):
|
||||
return json.loads(env_value) # type: ignore
|
||||
return json.loads(env_value.strip()) # type: ignore
|
||||
elif isinstance(value, str):
|
||||
return str(env_value).strip() # type: ignore
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue