aboutsummaryrefslogtreecommitdiffstats
path: root/generate.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-09-17 16:21:44 -0700
committerPinapelz <yukais@pinapelz.com>2025-09-17 16:21:44 -0700
commit8025f9d7f27aeae2d0ca84f2c9b10aefe5dae29b (patch)
tree27bc9a36a0b54242dd215934b584cfeadf196911 /generate.py
parenta3f00e15f7c1657891787be0b21813c2f4aeaca9 (diff)
skip wac_plus generation if no summarization key found
not possible to identify what is news or not in the feed without AI based classification
Diffstat (limited to 'generate.py')
-rw-r--r--generate.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/generate.py b/generate.py
index bc9a836..fac8c57 100644
--- a/generate.py
+++ b/generate.py
@@ -140,6 +140,9 @@ def generate_wmmt_news_file():
return generate_news_file("wmmt_news", constants.WANGAN_MAXI_GENERIC)
def generate_wacca_plus_news_file():
+ if not os.environ.get("OPENAI_API_KEY"):
+ print("[WARNING] Skipping WACCA PLUS generation, not possible without summarization key")
+ return {}
return generate_news_file("wacca_plus_news", constants.WACCA_PLUS_MAGIC_STRING)
def generate_museca_plus_news_file():
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage