Files
ManpreetLikhariShorthillsAIandClaude Sonnet 5 1231337ba2 fix: guard against empty choices and None message in memory tutorial apps
Four apps in llm_apps_with_memory_tutorials/ accessed
response.choices[0].message.content without checking that choices is
non-empty or that content is not None, causing an IndexError on empty
API responses (content filter, quota exceeded, transient error) or a
silent None passed downstream. Same fix pattern as PR #820.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-06 23:10:25 +05:30
..