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