Skip to content

Commit

Permalink
Updated default value for FILE_WRITING_ALLOWED
Browse files Browse the repository at this point in the history
  • Loading branch information
CodexVeritas committed Dec 19, 2024
1 parent 4e3df30 commit 4d08f2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion forecasting_tools/util/custom_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 4d08f2d

Please sign in to comment.