forked from phoenix/litellm-mirror
Merge pull request #5631 from miri-bar/update_ai21_docs
docs: update ai21 docs
This commit is contained in:
commit
ccda616f2f
1 changed files with 7 additions and 2 deletions
|
@ -3,7 +3,12 @@ import TabItem from '@theme/TabItem';
|
||||||
|
|
||||||
# AI21
|
# AI21
|
||||||
|
|
||||||
LiteLLM supports j2-light, j2-mid and j2-ultra from [AI21](https://www.ai21.com/studio/pricing)
|
LiteLLM supports the following [AI21](https://www.ai21.com/studio/pricing) models:
|
||||||
|
* `jamba-1.5-mini`
|
||||||
|
* `jamba-1.5-large`
|
||||||
|
* `j2-light`
|
||||||
|
* `j2-mid`
|
||||||
|
* `j2-ultra`
|
||||||
|
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
@ -30,7 +35,7 @@ os.environ["AI21_API_KEY"] = "your-api-key"
|
||||||
|
|
||||||
messages = [{"role": "user", "content": "Write me a poem about the blue sky"}]
|
messages = [{"role": "user", "content": "Write me a poem about the blue sky"}]
|
||||||
|
|
||||||
completion(model="j2-light", messages=messages)
|
completion(model="ai21/jamba-1.5-mini", messages=messages)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue