BerriAI / litellm

Python SDK, Proxy Server (LLM Gateway) to call 100+ LLM APIs in OpenAI format - [Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, HuggingFace, Replicate, Groq]
https://docs.litellm.ai/docs/
Other
14.07k stars 1.66k forks source link

[Bug]: Call to Anthropic Incorrectly failing with "seed" param unsupported. #6856

Open AshSourceTable opened 13 hours ago

AshSourceTable commented 13 hours ago

What happened?

According to the docs, seed is supported by Anthropic: https://docs.litellm.ai/docs/completion/input#translated-openai-params

However, calling acompletion:

litellm.acompletion(seed="12345", .... )

Results in the error:

litellm.UnsupportedParamsError: anthropic does not support parameters: {'seed': 12345}, for model=claude-3-5-sonnet-20241022. To drop these, set `litellm.drop_params=True` or for proxy:
...

Relevant log output

No response

Twitter / LinkedIn details

No response