Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ documented. Per-file expectations are in each demo's own README.
The CodeDelta tool fetches a **tagged release** of this repo matching its own
version, so the demo a given build shows never changes underneath it. `main` may
move ahead of released tools.

7 changes: 7 additions & 0 deletions agent-scan-demo/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ def ask_claude(question: str) -> str:
messages=[{"role": "user", "content": question}],
)
return msg.content[0].text

def ask_with_fallback(question: str) -> str:
"""Ask OpenAI first; fall back to Claude if the primary call fails."""
try:
return ask_openai(question)
except Exception:
return ask_claude(question)
180 changes: 90 additions & 90 deletions churn-demo/new/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading