-
Notifications
You must be signed in to change notification settings - Fork 994
Add FallbackModel
support
#894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
d66b3a2
fallback proof of concept
sydney-runkle 9956c96
remove model name updates
sydney-runkle a821380
catching 4xx and 5xx business
sydney-runkle a4b4ebb
fixing test
sydney-runkle b4a6b1a
move groq import
sydney-runkle 4e2b089
return after yield
sydney-runkle 9e7f53b
intro docs
sydney-runkle 737cf2e
non streaming testing
sydney-runkle 3113ae5
initial tests
sydney-runkle bf477e2
Comprehension golfing, thanks @alexmojaki
sydney-runkle 47b4901
fix linting issue
sydney-runkle 3b95211
openai test with exceptions
sydney-runkle 992d540
Merge branch 'main' into fallback-model-updated
sydney-runkle 25afb86
adding model_name and system abstract methods
sydney-runkle 7a23eb1
Merge branch 'main' into fallback-model-updated
sydney-runkle 31150ff
using sequence and fixing 3.9 tests
sydney-runkle b83bc5e
using list with type hinting
sydney-runkle 154d907
tests
sydney-runkle 0f49228
streaming tests
sydney-runkle 7cb8267
Get tests passing
dmontagu ff7b596
Minor cleanup
dmontagu 68b0f0b
type alias testing cleanup
sydney-runkle d614df2
exception group like
sydney-runkle 9ac1f8e
adding fallback failure example
sydney-runkle 82b6580
fix f string issue
sydney-runkle 538ac12
try moving type alias definitions into protected import block
sydney-runkle ba5f778
docs updates + fixing 3.9 tests
sydney-runkle b11d971
Merge branch 'main' into fallback-model-updated
dmontagu b2f499a
Merge remote-tracking branch 'origin/main' into fallback-model-updated
Kludex 0088e4c
Fix test
Kludex 0b025e5
Push exceptiongroup
Kludex 9c32626
tests passing
Kludex 59c246e
Apply David's comments
Kludex 6b5cdba
Update docs/models.md
Kludex 57df786
Update docs
dmontagu f5d2a5c
Improve model names in tests
dmontagu da98197
Fix tests
dmontagu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# pydantic_ai.models.fallback | ||
|
||
::: pydantic_ai.models.fallback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.