- Notifications
You must be signed in to change notification settings - Fork1k
Addtool_choice
toModelSettings
#825
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Draft
webcoderz wants to merge40 commits intopydantic:mainChoose a base branch fromwebcoderz:main
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
+245 −96
Draft
Changes from1 commit
Commits
Show all changes
40 commits Select commitHold shift + click to select a range
3777d06
Update openai.py
webcoderz6746781
Update pyproject.toml
webcoderz7d2c2ef
adding to model settings , removing monkeypatch
webcoderz2567bbc
Update openai.py
webcoderz4bc72f9
Update settings.py
webcoderzac10ee1
backing this out
webcoderzce38756
Update pyproject.toml
webcoderzfe341b1
Merge branch 'main' into webcoderz-model-settings
webcoderz12015c9
Update groq.py
webcoderz6dd9987
removing fallback comment
webcoderz3250aff
adding as per reccomendation
webcoderza0b7454
removing tool_choice from ModelSettings and placing in each individu…
webcoderz79acaf3
the conditional checking tool_choice was not evaluating when i added …
webcoderz67e6ac3
adding _get_tool_choice to groq,cohere, openai
webcoderz9aa905c
unsure if these are necessary since seem supported already in mistral…
webcoderz9349412
fixing tool_choice across all models
webcoderz1bd0cf3
Merge branch 'pydantic:main' into webcoderz-model-settings
webcoderza03fcfe
moving to top level settings
webcoderz89946a9
Merge branch 'pydantic:main' into webcoderz-model-settings
webcoderz20d8c8c
Merge branch 'webcoderz-model-settings'
webcoderz396b89c
Merge branch 'pydantic:main' into webcoderz-model-settings
webcoderz61b360b
Merge branch 'webcoderz-model-settings'
webcoderze6df5fb
Merge branch 'pydantic:main' into webcoderz-model-settings
webcoderz1e4b0c5
Merge branch 'pydantic:main' into webcoderz-model-settings
webcoderz1419b5a
Merge branch 'webcoderz-model-settings'
webcoderz8b6f102
fixing ChatCompletionNamedToolChoiceParam
webcoderz1af96f3
Merge branch 'webcoderz-model-settings'
webcoderz0f47da9
Update cohere.py
webcoderza23c014
Update openai.py
webcoderz9cefe9e
Update openai.py
webcoderz445c7ba
Update openai.py
webcoderz6ac1857
Merge remote-tracking branch 'origin/main' into webcoderz/main
Kludex2e238a2
Refactor
Kludexa86f5ce
Add Anthropic
Kludex9159aeb
full implementation
Kludex5cb233b
merge
Kludex059f92e
Merge remote-tracking branch 'origin/main' into webcoderz/main
Kludex30560b5
Merge remote-tracking branch 'origin/main' into webcoderz/main
Kludexae1ab1c
Make GeminiModelSettings total=False
Kludex32cf6a6
Check safety settings on gemini properly
KludexFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Update groq.py
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit12015c937edba543b0fa8da3e9cfda7935f2384d
There are no files selected for viewing
16 changes: 10 additions & 6 deletionspydantic_ai_slim/pydantic_ai/models/groq.py
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
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.