Skip to content

Conversation

@julwrites
Copy link
Owner

No description provided.

google-labs-jules bot and others added 3 commits November 26, 2025 01:11
Implements a fallback mechanism to use the deprecated passage retrieval
logic if the Bible AI API call fails.

- Modifies `GetBiblePassage` to catch errors from `SubmitQuery` and
  trigger the fallback.
- Refactors `GetPassageHtml` to `GetPassageHTMLFunc` to allow for mocking
  in tests.
- Updates all call-sites of `GetPassageHtml` to use the new
  `GetPassageHTMLFunc`.
- Adds a new test case to `passage_test.go` to verify the fallback
  logic without making external network calls.
- Fixes a pre-existing bug in `api_client.go` that was causing build
  failures.
Implement Fallback for Passage Retrieval
@julwrites julwrites merged commit 7a83940 into master Nov 26, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants