mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
add additional param mapping
This commit is contained in:
parent
b5fc04c315
commit
95899bf60e
6 changed files with 47 additions and 26 deletions
|
@ -62,20 +62,22 @@ E.g. If Anthropic supports top_k, then `completion(model="claude-2", .., top_k=3
|
|||
|
||||
This list is constantly being updated.
|
||||
|
||||
| Provider | functions | function_call | temperature | top_p | n | stream | stop | max_tokens | presence_penalty | frequency_penalty | logit_bias | user |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||
|Anthropic| | | ✅ | ✅ | | ✅ | ✅ | ✅ | | |
|
||||
|OpenAI| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
|Replicate| | | ✅ | ✅ | ✅ | ✅ | ✅ | ✅| | |
|
||||
|Cohere| | | ✅ | ✅ | | ✅ | | ✅| | | ✅ |
|
||||
|Huggingface| | | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | |
|
||||
|Openrouter| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
|AI21| | | | | | | | | | | |
|
||||
|VertexAI| | | ✅ | ✅ | | ✅ | | ✅ | | | |
|
||||
|Bedrock| | | ✅ | ✅ | | ✅ | ✅ | ✅ | | | |
|
||||
|Sagemaker| | | ✅ | | | ✅ | | ✅ | | | |
|
||||
|TogetherAI| | | ✅ | ✅ | | ✅ | ✅ | ✅ | | ✅ | |
|
||||
|AlephAlpha| | | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | |
|
||||
|Palm| | | ✅ | ✅ | | ✅ | | | | | |
|
||||
|NLP Cloud| | | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | |
|
||||
|Petals| | | ✅ | ✅ | | | | ✅ | | |
|
||||
| Provider | temperature | top_p | n | stream | stop | max_tokens | presence_penalty | frequency_penalty | functions | function_call |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|
|
||||
|Anthropic| ✅ | ✅ | | ✅ | ✅ | ✅ | | | | |
|
||||
|OpenAI| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
|Replicate | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | |
|
||||
|Cohere| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | |
|
||||
|Huggingface| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | |
|
||||
|Openrouter| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
|AI21| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | |
|
||||
|VertexAI| ✅ | ✅ | | ✅ | | ✅ | | | | |
|
||||
|Bedrock| ✅ | ✅ | | ✅ | ✅ | ✅ | | | | |
|
||||
|Sagemaker| ✅ | | | ✅ | | ✅ | | | | |
|
||||
|TogetherAI| ✅ | ✅ | | ✅ | ✅ | ✅ | | | | |
|
||||
|AlephAlpha| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | |
|
||||
|Palm| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | |
|
||||
|NLP Cloud| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | |
|
||||
|Petals| ✅ | ✅ | | ✅ | ✅ | | | | | |
|
||||
|
||||
By default, LiteLLM raises an exception if the param being passed in isn't supported. However, if you want to just drop the param, instead of raising an exception, just set `litellm.drop_params = True`.
|
Loading…
Add table
Add a link
Reference in a new issue