From a043add6ae5fdd7de6ddf5dd3066199e1f001f42 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Thu, 19 Dec 2024 04:31:12 +0000 Subject: [PATCH] Updated default value for FILE_WRITING_ALLOWED --- README.md | 2 +- forecasting_tools/util/custom_logger.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b214f4..81cd243 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ class MyCustomBot(TemplateBot): ## Setting Environment Variables -Whether running locally or through Github actions, you will need to set environment variables. All environment variables you might want are in `.env.template`. Generally you only need the METACULUS_TOKEN if running the Template. Having an EXA_API_KEY (see www.exa.ai) or PERPLEXITY_API_KEY (see www.perplexity.ai) is needed for searching the web. Make sure to put these variables in your `.env` file if running locally and in the Github actions secrets if running on Github actions. +Whether running locally or through Github actions, you will need to set environment variables. All environment variables you might want are in `.env.template`. Generally you only need the METACULUS_TOKEN if running the Template. Having an EXA_API_KEY (see www.exa.ai) or PERPLEXITY_API_KEY (see www.perplexity.ai) is needed for searching the web. Make sure to put these variables in your `.env` file if running locally and in the Github actions secrets if running on Github actions. Remember to set 'FILE_WRITING_ALLOWED' to true if you want to save results. # Forecasting Tools Examples diff --git a/forecasting_tools/util/custom_logger.py b/forecasting_tools/util/custom_logger.py index 4353acb..d0b6f12 100644 --- a/forecasting_tools/util/custom_logger.py +++ b/forecasting_tools/util/custom_logger.py @@ -48,7 +48,7 @@ def setup_logging(cls) -> None: handlers = [] file_writing_is_allowed = ( - os.environ.get("FILE_WRITING_ALLOWED", "TRUE").upper() == "TRUE" + os.environ.get("FILE_WRITING_ALLOWED", "FALSE").upper() == "TRUE" ) if file_writing_is_allowed: cls.__message_to_append_to_file = ( diff --git a/pyproject.toml b/pyproject.toml index 961a9e1..710269c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "forecasting-tools" -version = "0.2.0" +version = "0.2.1" description = "AI forecasting and research tools to help humans reason about and forecast the future" authors = ["Benjamin Wilson "] license = "MIT"