forked from phoenix/litellm-mirror
(docs) cohere-comand-r
This commit is contained in:
parent
f50539ace9
commit
8fabaed543
2 changed files with 14 additions and 4 deletions
|
@ -17,7 +17,7 @@ os.environ["COHERE_API_KEY"] = "cohere key"
|
|||
|
||||
# cohere call
|
||||
response = completion(
|
||||
model="command-nightly",
|
||||
model="command-r",
|
||||
messages = [{ "content": "Hello, how are you?","role": "user"}]
|
||||
)
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ os.environ["COHERE_API_KEY"] = "cohere key"
|
|||
|
||||
# cohere call
|
||||
response = completion(
|
||||
model="command-nightly",
|
||||
model="command-r",
|
||||
messages = [{ "content": "Hello, how are you?","role": "user"}],
|
||||
stream=True
|
||||
)
|
||||
|
@ -41,7 +41,17 @@ for chunk in response:
|
|||
print(chunk)
|
||||
```
|
||||
|
||||
LiteLLM supports 'command', 'command-light', 'command-medium', 'command-medium-beta', 'command-xlarge-beta', 'command-nightly' models from [Cohere](https://cohere.com/).
|
||||
|
||||
## Supported Models
|
||||
| Model Name | Function Call |
|
||||
|------------|----------------|
|
||||
| command-r | `completion('command-r', messages)` |
|
||||
| command-light | `completion('command-light', messages)` |
|
||||
| command-medium | `completion('command-medium', messages)` |
|
||||
| command-medium-beta | `completion('command-medium-beta', messages)` |
|
||||
| command-xlarge-beta | `completion('command-xlarge-beta', messages)` |
|
||||
| command-nightly | `completion('command-nightly', messages)` |
|
||||
|
||||
|
||||
## Embedding
|
||||
|
||||
|
|
|
@ -131,6 +131,7 @@ const sidebars = {
|
|||
"providers/anthropic",
|
||||
"providers/aws_sagemaker",
|
||||
"providers/bedrock",
|
||||
"providers/cohere",
|
||||
"providers/anyscale",
|
||||
"providers/huggingface",
|
||||
"providers/ollama",
|
||||
|
@ -143,7 +144,6 @@ const sidebars = {
|
|||
"providers/ai21",
|
||||
"providers/nlp_cloud",
|
||||
"providers/replicate",
|
||||
"providers/cohere",
|
||||
"providers/togetherai",
|
||||
"providers/voyage",
|
||||
"providers/aleph_alpha",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue