mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
build(model_prices_and_context_window.json): add amazon.rerank model to model cost map
This commit is contained in:
parent
b86a139b64
commit
150051c3e4
3 changed files with 27 additions and 0 deletions
|
|
@ -5982,6 +5982,19 @@
|
|||
"litellm_provider": "bedrock",
|
||||
"mode": "chat"
|
||||
},
|
||||
"amazon.rerank-v1:0": {
|
||||
"max_tokens": 32000,
|
||||
"max_input_tokens": 32000,
|
||||
"max_output_tokens": 32000,
|
||||
"max_tokens_per_doc": 512,
|
||||
"max_query_tokens": 32000,
|
||||
"max_documents_per_query": 100,
|
||||
"input_cost_per_token": 0.0,
|
||||
"input_cost_per_query": 0.001,
|
||||
"output_cost_per_token": 0.0,
|
||||
"litellm_provider": "bedrock",
|
||||
"mode": "rerank"
|
||||
},
|
||||
"amazon.titan-text-lite-v1": {
|
||||
"max_tokens": 4000,
|
||||
"max_input_tokens": 42000,
|
||||
|
|
|
|||
|
|
@ -5982,6 +5982,19 @@
|
|||
"litellm_provider": "bedrock",
|
||||
"mode": "chat"
|
||||
},
|
||||
"amazon.rerank-v1:0": {
|
||||
"max_tokens": 32000,
|
||||
"max_input_tokens": 32000,
|
||||
"max_output_tokens": 32000,
|
||||
"max_tokens_per_doc": 512,
|
||||
"max_query_tokens": 32000,
|
||||
"max_documents_per_query": 100,
|
||||
"input_cost_per_token": 0.0,
|
||||
"input_cost_per_query": 0.001,
|
||||
"output_cost_per_token": 0.0,
|
||||
"litellm_provider": "bedrock",
|
||||
"mode": "rerank"
|
||||
},
|
||||
"amazon.titan-text-lite-v1": {
|
||||
"max_tokens": 4000,
|
||||
"max_input_tokens": 42000,
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ class BaseLLMRerankTest(ABC):
|
|||
assert response.results is not None
|
||||
|
||||
assert response._hidden_params["response_cost"] is not None
|
||||
assert response._hidden_params["response_cost"] > 0
|
||||
|
||||
assert_response_shape(
|
||||
response=response, custom_llm_provider=custom_llm_provider.value
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue