diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-12-23 17:54:32 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-12-23 17:54:32 -0800 |
| commit | bff644d876bcd157114952339346f5d476155012 (patch) | |
| tree | 887e97e16cf6f366eaf67ff0d231379a4260af4b /summarizer.py | |
| parent | ffa01312b3bcfc65541a9496b3e4362233e716cc (diff) | |
stub AI summarization if API call fails
Diffstat (limited to 'summarizer.py')
| -rw-r--r-- | summarizer.py | 2 |
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 |
