-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
fixed an issue with tool use of claude models with anthropic and bedrock #6013
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
krrishdholakia
merged 1 commit into
BerriAI:litellm_dev_10_25_2024
from
vedpatwardhan:main
Oct 2, 2024
Merged
fixed an issue with tool use of claude models with anthropic and bedrock #6013
krrishdholakia
merged 1 commit into
BerriAI:litellm_dev_10_25_2024
from
vedpatwardhan:main
Oct 2, 2024
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
|
Hey @vedpatwardhan does an empty tool block fix the issue? |
krrishdholakia
added a commit
that referenced
this pull request
Oct 3, 2024
* feat(together_ai/completion): handle together ai completion calls * fix: handle list of int / list of list of int for text completion calls * fix(utils.py): check if base model in bedrock converse model list Fixes #6003 * test(test_optional_params.py): add unit tests for bedrock optional param mapping Fixes #6003 * feat(utils.py): enable passing dummy tool call for anthropic/bedrock calls if tool_use blocks exist Fixes #5388 * fixed an issue with tool use of claude models with anthropic and bedrock (#6013) * fix(utils.py): handle empty schema for anthropic/bedrock Fixes #6012 * fix: fix linting errors * fix: fix linting errors * fix: fix linting errors * fix(proxy_cli.py): fix import route for app + health checks path (#6026) * (testing): Enable testing us.anthropic.claude-3-haiku-20240307-v1:0. (#6018) * fix(proxy_cli.py): fix import route for app + health checks gettsburg.wav Fixes #5999 --------- Co-authored-by: David Manouchehri <[email protected]> --------- Co-authored-by: Ved Patwardhan <[email protected]> Co-authored-by: David Manouchehri <[email protected]>
krrishdholakia
added a commit
that referenced
this pull request
Oct 3, 2024
* feat(together_ai/completion): handle together ai completion calls * fix: handle list of int / list of list of int for text completion calls * fix(utils.py): check if base model in bedrock converse model list Fixes #6003 * test(test_optional_params.py): add unit tests for bedrock optional param mapping Fixes #6003 * feat(utils.py): enable passing dummy tool call for anthropic/bedrock calls if tool_use blocks exist Fixes #5388 * fixed an issue with tool use of claude models with anthropic and bedrock (#6013) * fix(utils.py): handle empty schema for anthropic/bedrock Fixes #6012 * fix: fix linting errors * fix: fix linting errors * fix: fix linting errors * fix(proxy_cli.py): fix import route for app + health checks path (#6026) * (testing): Enable testing us.anthropic.claude-3-haiku-20240307-v1:0. (#6018) * fix(proxy_cli.py): fix import route for app + health checks gettsburg.wav Fixes #5999 --------- Co-authored-by: David Manouchehri <[email protected]> --------- Co-authored-by: Ved Patwardhan <[email protected]> Co-authored-by: David Manouchehri <[email protected]>
krrishdholakia
added a commit
that referenced
this pull request
Oct 3, 2024
* feat(together_ai/completion): handle together ai completion calls * fix: handle list of int / list of list of int for text completion calls * fix(utils.py): check if base model in bedrock converse model list Fixes #6003 * test(test_optional_params.py): add unit tests for bedrock optional param mapping Fixes #6003 * feat(utils.py): enable passing dummy tool call for anthropic/bedrock calls if tool_use blocks exist Fixes #5388 * fixed an issue with tool use of claude models with anthropic and bedrock (#6013) * fix(utils.py): handle empty schema for anthropic/bedrock Fixes #6012 * fix: fix linting errors * fix: fix linting errors * fix: fix linting errors * fix(proxy_cli.py): fix import route for app + health checks path (#6026) * (testing): Enable testing us.anthropic.claude-3-haiku-20240307-v1:0. (#6018) * fix(proxy_cli.py): fix import route for app + health checks gettsburg.wav Fixes #5999 --------- Co-authored-by: David Manouchehri <[email protected]> --------- Co-authored-by: Ved Patwardhan <[email protected]> Co-authored-by: David Manouchehri <[email protected]>
krrishdholakia
added a commit
that referenced
this pull request
Oct 3, 2024
* (azure): Enable stream_options for Azure OpenAI. (#6024) * LiteLLM Minor Fixes & Improvements (10/02/2024) (#6023) * feat(together_ai/completion): handle together ai completion calls * fix: handle list of int / list of list of int for text completion calls * fix(utils.py): check if base model in bedrock converse model list Fixes #6003 * test(test_optional_params.py): add unit tests for bedrock optional param mapping Fixes #6003 * feat(utils.py): enable passing dummy tool call for anthropic/bedrock calls if tool_use blocks exist Fixes #5388 * fixed an issue with tool use of claude models with anthropic and bedrock (#6013) * fix(utils.py): handle empty schema for anthropic/bedrock Fixes #6012 * fix: fix linting errors * fix: fix linting errors * fix: fix linting errors * fix(proxy_cli.py): fix import route for app + health checks path (#6026) * (testing): Enable testing us.anthropic.claude-3-haiku-20240307-v1:0. (#6018) * fix(proxy_cli.py): fix import route for app + health checks gettsburg.wav Fixes #5999 --------- Co-authored-by: David Manouchehri <[email protected]> --------- Co-authored-by: Ved Patwardhan <[email protected]> Co-authored-by: David Manouchehri <[email protected]> --------- Co-authored-by: David Manouchehri <[email protected]> Co-authored-by: Ved Patwardhan <[email protected]>
Contributor
Author
Yep, thanks for merging the changes 👍 |
krrishdholakia
added a commit
that referenced
this pull request
Oct 3, 2024
* fix(factory.py): bedrock: merge consecutive tool + user messages Fixes #6007 * LiteLLM Minor Fixes & Improvements (10/02/2024) (#6023) * feat(together_ai/completion): handle together ai completion calls * fix: handle list of int / list of list of int for text completion calls * fix(utils.py): check if base model in bedrock converse model list Fixes #6003 * test(test_optional_params.py): add unit tests for bedrock optional param mapping Fixes #6003 * feat(utils.py): enable passing dummy tool call for anthropic/bedrock calls if tool_use blocks exist Fixes #5388 * fixed an issue with tool use of claude models with anthropic and bedrock (#6013) * fix(utils.py): handle empty schema for anthropic/bedrock Fixes #6012 * fix: fix linting errors * fix: fix linting errors * fix: fix linting errors * fix(proxy_cli.py): fix import route for app + health checks path (#6026) * (testing): Enable testing us.anthropic.claude-3-haiku-20240307-v1:0. (#6018) * fix(proxy_cli.py): fix import route for app + health checks gettsburg.wav Fixes #5999 --------- Co-authored-by: David Manouchehri <[email protected]> --------- Co-authored-by: Ved Patwardhan <[email protected]> Co-authored-by: David Manouchehri <[email protected]> * fix(factory.py): correctly handle content in tool block --------- Co-authored-by: Ved Patwardhan <[email protected]> Co-authored-by: David Manouchehri <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Title
Fixed claude tool use without "parameters" in anthropic and bedrock
Relevant issues
Fixes #6012
Type
🐛 Bug Fix
Changes
Added a default value for the
"parameters"in theanthropic's_transform_requestand the_bedrock_tools_pt