mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
Added compatibility guidance, etc. for xAI Grok model (#8282)
* Various updates Signed-off-by: Zhaohan Dong <65422392+zhaohan-dong@users.noreply.github.com> * Update xAI branding Signed-off-by: Zhaohan Dong <65422392+zhaohan-dong@users.noreply.github.com> * Revert changes Signed-off-by: Zhaohan Dong <65422392+zhaohan-dong@users.noreply.github.com> --------- Signed-off-by: Zhaohan Dong <65422392+zhaohan-dong@users.noreply.github.com>
This commit is contained in:
parent
fbe3c58372
commit
88e7046165
4 changed files with 5 additions and 2 deletions
|
@ -8,6 +8,7 @@ Use `litellm.supports_function_calling(model="")` -> returns `True` if model sup
|
|||
assert litellm.supports_function_calling(model="gpt-3.5-turbo") == True
|
||||
assert litellm.supports_function_calling(model="azure/gpt-4-1106-preview") == True
|
||||
assert litellm.supports_function_calling(model="palm/chat-bison") == False
|
||||
assert litellm.supports_function_calling(model="xai/grok-2-latest") == True
|
||||
assert litellm.supports_function_calling(model="ollama/llama2") == False
|
||||
```
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ Use `litellm.get_supported_openai_params()` for an updated list of params for ea
|
|||
|Anthropic| ✅ | ✅ | ✅ |✅ | ✅ | ✅ | ✅ | | | | | | |✅ | ✅ | | ✅ | ✅ | | | ✅ |
|
||||
|OpenAI| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |✅ | ✅ | ✅ | ✅ |✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
|Azure OpenAI| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |✅ | ✅ | ✅ | ✅ |✅ | ✅ | | | ✅ |
|
||||
|xAI| ✅ | | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
|
||||
|Replicate | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | | | | |
|
||||
|Anyscale | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
|Cohere| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | |
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# XAI
|
||||
# xAI
|
||||
|
||||
https://docs.x.ai/docs
|
||||
|
||||
:::tip
|
||||
|
||||
**We support ALL XAI models, just set `model=xai/<any-model-on-xai>` as a prefix when sending litellm requests**
|
||||
**We support ALL xAI models, just set `model=xai/<any-model-on-xai>` as a prefix when sending litellm requests**
|
||||
|
||||
:::
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ import os
|
|||
# Set OpenAI API key
|
||||
os.environ["OPENAI_API_KEY"] = "Your API Key"
|
||||
os.environ["ANTHROPIC_API_KEY"] = "Your API Key"
|
||||
os.environ["XAI_API_KEY"] = "Your API Key"
|
||||
os.environ["REPLICATE_API_KEY"] = "Your API Key"
|
||||
os.environ["TOGETHERAI_API_KEY"] = "Your API Key"
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue