You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
This PR handles errors that occur when there are no successful requests.
There will obviously still be an error, but it will be one that the user
can get useful information from, rather than one that is the inner
workings breaking.
## Details
- Adds default value for an inner data type to allow it to work in this
edge case.
- Adds an error check that creates a runtime error with an explanation
for the failure. The error message can be changed if you would like the
wording changed.
- Fixes a type literal mismatch.
## Test Plan
- Run GuideLLM against a mock server in a way that results in all
requests failing. Like setting the max token value way too small.
---
- [x] "I certify that all code in this PR is my own, except as noted
below."
## Use of AI
- [ ] Includes AI-assisted code completion
- [ ] Includes code generated by an AI application
- [ ] Includes AI-generated tests (NOTE: AI written tests should have a
docstring that includes `## WRITTEN BY AI ##`)
---------
Signed-off-by: Jared O'Connell <[email protected]>
0 commit comments