lavague-ai / LaVague

Large Action Model framework to develop AI Web Agents
https://docs.lavague.ai/en/latest/
Apache License 2.0
5.5k stars 506 forks source link

Added environment variable check to add logs to db for #474 #486

Closed jashuajoy closed 4 months ago

jashuajoy commented 4 months ago

for #474

adeprez commented 4 months ago

Thanks for the contribution!

The ability to override the env with an argument pointed out by @paulpalmieri https://github.com/lavague-ai/LaVague/issues/474#issuecomment-2253091238 could be a great addition.

You can keep the log_to_db argument in the run method and change its default value to the one from env:

log_to_db: bool = os.getenv("LAVAGUE_LOG_TO_DB", "").lower() in ("true", "1", "y", "yes")