aboutsummaryrefslogtreecommitdiffstats
path: root/summarizer.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-12-23 17:54:32 -0800
committerPinapelz <yukais@pinapelz.com>2025-12-23 17:54:32 -0800
commitbff644d876bcd157114952339346f5d476155012 (patch)
tree887e97e16cf6f366eaf67ff0d231379a4260af4b /summarizer.py
parentffa01312b3bcfc65541a9496b3e4362233e716cc (diff)
stub AI summarization if API call fails
Diffstat (limited to 'summarizer.py')
-rw-r--r--summarizer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/summarizer.py b/summarizer.py
index 0c30347..689626d 100644
--- a/summarizer.py
+++ b/summarizer.py
@@ -90,5 +90,5 @@ def generate_headline_and_content_from_images(img_urls: list[str], game: str, me
except openai.OpenAIError as e:
print(f"[ERROR] Function call to OpenAI for summarization failed ERROR -> {e} ")
database.close()
- return None, None
+ return f"NEW {game} INFORMATION / 新しい{game}情報", f"NEW {game} INFORMATION AVAILABLE / 新しい{game}情報が利用可能です"
return headline, content
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage