-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add llm_drop_params setting to avoid AnthropicException #1239
base: main
Are you sure you want to change the base?
Conversation
e2818d7
to
b920da7
Compare
Hey @nobu007, thanks for testing this with Anthropic and making this fix! Should we just set |
@KillianLucas Btw, modify_params is also useful for Anthropic. How about adding this also? |
f4a9f2c
to
a9e26f2
Compare
151e866
to
49c4c3b
Compare
@KillianLucas |
litellm.drop_params=True can avoid this error. Error in chat: AnthropicException - anthropic does not support parameters
49c4c3b
to
a19ebac
Compare
@@ -805,4 +805,45 @@ computer.import_computer_api: True | |||
``` | |||
|
|||
</CodeGroup> | |||
```` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This ```` that added in this PR looks no meanings. So I delete it.
#1291
@KillianLucas |
litellm.drop_params=True can avoid this error(#1240).
Error in chat: AnthropicException - anthropic does not support parameters
I think drop_params is good altanative for debugging or workaround of future errors.
Describe the changes you have made:
This option allow litellm.drop_params=True.
Reference any relevant issues (e.g. "Fixes #000"):
Related with #1240.
Pre-Submission Checklist (optional but appreciated):
docs/CONTRIBUTING.md
docs/ROADMAP.md
I found "Use Anthropic function calling" in ROADMAP.md.
Is #1240 just not implemaneted?
OS Tests (optional but appreciated):
Test(works fine)
Note1
This error is probably resolved by this PR.
Note2
"litellm.modify_params" helps activate here code in litellm.
The first message is empty or non user, dummy message append in anthropic model.
It is not important, but helps for me.