mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
(feat) add cohere_chat to model_prices
This commit is contained in:
parent
e5bb65669d
commit
aa8b5e9768
3 changed files with 43 additions and 22 deletions
|
|
@ -981,35 +981,45 @@
|
|||
"litellm_provider": "gemini",
|
||||
"mode": "chat"
|
||||
},
|
||||
"command-nightly": {
|
||||
|
||||
"cohere_chat/command-r": {
|
||||
"max_tokens": 128000,
|
||||
"max_input_tokens": 128000,
|
||||
"max_output_tokens": 4096,
|
||||
"input_cost_per_token": 0.00000050,
|
||||
"output_cost_per_token": 0.0000015,
|
||||
"litellm_provider": "cohere_chat",
|
||||
"mode": "chat"
|
||||
},
|
||||
"cohere_chat/command-light": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
"litellm_provider": "cohere_chat",
|
||||
"mode": "chat"
|
||||
},
|
||||
"cohere/command-nightly": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
"litellm_provider": "cohere",
|
||||
"mode": "completion"
|
||||
},
|
||||
"command": {
|
||||
"cohere/command": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
"litellm_provider": "cohere",
|
||||
"mode": "completion"
|
||||
},
|
||||
"command-light": {
|
||||
"cohere/command-medium-beta": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
"litellm_provider": "cohere",
|
||||
"mode": "completion"
|
||||
},
|
||||
"command-medium-beta": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
"litellm_provider": "cohere",
|
||||
"mode": "completion"
|
||||
},
|
||||
"command-xlarge-beta": {
|
||||
"cohere/command-xlarge-beta": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
|
|
|
|||
|
|
@ -1960,6 +1960,7 @@ def test_completion_cohere():
|
|||
pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
|
||||
# FYI - cohere_chat looks quite unstable, even when testing locally
|
||||
def test_chat_completion_cohere():
|
||||
try:
|
||||
litellm.set_verbose = True
|
||||
|
|
|
|||
|
|
@ -981,35 +981,45 @@
|
|||
"litellm_provider": "gemini",
|
||||
"mode": "chat"
|
||||
},
|
||||
"command-nightly": {
|
||||
|
||||
"cohere_chat/command-r": {
|
||||
"max_tokens": 128000,
|
||||
"max_input_tokens": 128000,
|
||||
"max_output_tokens": 4096,
|
||||
"input_cost_per_token": 0.00000050,
|
||||
"output_cost_per_token": 0.0000015,
|
||||
"litellm_provider": "cohere_chat",
|
||||
"mode": "chat"
|
||||
},
|
||||
"cohere_chat/command-light": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
"litellm_provider": "cohere_chat",
|
||||
"mode": "chat"
|
||||
},
|
||||
"cohere/command-nightly": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
"litellm_provider": "cohere",
|
||||
"mode": "completion"
|
||||
},
|
||||
"command": {
|
||||
"cohere/command": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
"litellm_provider": "cohere",
|
||||
"mode": "completion"
|
||||
},
|
||||
"command-light": {
|
||||
"cohere/command-medium-beta": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
"litellm_provider": "cohere",
|
||||
"mode": "completion"
|
||||
},
|
||||
"command-medium-beta": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
"litellm_provider": "cohere",
|
||||
"mode": "completion"
|
||||
},
|
||||
"command-xlarge-beta": {
|
||||
"cohere/command-xlarge-beta": {
|
||||
"max_tokens": 4096,
|
||||
"input_cost_per_token": 0.000015,
|
||||
"output_cost_per_token": 0.000015,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue