Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Litellm stable release branch #8738

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 55 additions & 4 deletions litellm/model_prices_and_context_window_backup.json
Original file line number Diff line number Diff line change
Expand Up @@ -2643,6 +2643,17 @@
"supports_function_calling": true,
"supports_tool_choice": true
},
"cerebras/llama3.3-70b": {
"max_tokens": 128000,
"max_input_tokens": 128000,
"max_output_tokens": 128000,
"input_cost_per_token": 0.00000085,
"output_cost_per_token": 0.0000012,
"litellm_provider": "cerebras",
"mode": "chat",
"supports_function_calling": true,
"supports_tool_choice": true
},
"friendliai/meta-llama-3.1-8b-instruct": {
"max_tokens": 8192,
"max_input_tokens": 8192,
Expand Down Expand Up @@ -5982,6 +5993,19 @@
"litellm_provider": "bedrock",
"mode": "chat"
},
"amazon.rerank-v1:0": {
"max_tokens": 32000,
"max_input_tokens": 32000,
"max_output_tokens": 32000,
"max_query_tokens": 32000,
"max_document_chunks_per_query": 100,
"max_tokens_per_document_chunk": 512,
"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,
Expand Down Expand Up @@ -7022,6 +7046,19 @@
"mode": "chat",
"supports_tool_choice": true
},
"cohere.rerank-v3-5:0": {
"max_tokens": 32000,
"max_input_tokens": 32000,
"max_output_tokens": 32000,
"max_query_tokens": 32000,
"max_document_chunks_per_query": 100,
"max_tokens_per_document_chunk": 512,
"input_cost_per_token": 0.0,
"input_cost_per_query": 0.002,
"output_cost_per_token": 0.0,
"litellm_provider": "bedrock",
"mode": "rerank"
},
"cohere.command-text-v14": {
"max_tokens": 4096,
"max_input_tokens": 4096,
Expand Down Expand Up @@ -7424,7 +7461,8 @@
"litellm_provider": "bedrock",
"mode": "chat",
"supports_function_calling": true,
"supports_tool_choice": false
"supports_tool_choice": false,
"supports_vision": true
},
"us.meta.llama3-2-11b-instruct-v1:0": {
"max_tokens": 128000,
Expand All @@ -7435,7 +7473,8 @@
"litellm_provider": "bedrock",
"mode": "chat",
"supports_function_calling": true,
"supports_tool_choice": false
"supports_tool_choice": false,
"supports_vision": true
},
"meta.llama3-2-90b-instruct-v1:0": {
"max_tokens": 128000,
Expand All @@ -7446,7 +7485,8 @@
"litellm_provider": "bedrock",
"mode": "chat",
"supports_function_calling": true,
"supports_tool_choice": false
"supports_tool_choice": false,
"supports_vision": true
},
"us.meta.llama3-2-90b-instruct-v1:0": {
"max_tokens": 128000,
Expand All @@ -7457,7 +7497,8 @@
"litellm_provider": "bedrock",
"mode": "chat",
"supports_function_calling": true,
"supports_tool_choice": false
"supports_tool_choice": false,
"supports_vision": true
},
"us.meta.llama3-3-70b-instruct-v1:0": {
"max_tokens": 4096,
Expand Down Expand Up @@ -9154,5 +9195,15 @@
"input_cost_per_second": 0.00003333,
"output_cost_per_second": 0.00,
"litellm_provider": "assemblyai"
},
"jina-reranker-v2-base-multilingual": {
"max_tokens": 1024,
"max_input_tokens": 1024,
"max_output_tokens": 1024,
"max_document_chunks_per_query": 2048,
"input_cost_per_token": 0.000000018,
"output_cost_per_token": 0.000000018,
"litellm_provider": "jina_ai",
"mode": "rerank"
}
}
59 changes: 55 additions & 4 deletions model_prices_and_context_window.json
Original file line number Diff line number Diff line change
Expand Up @@ -2643,6 +2643,17 @@
"supports_function_calling": true,
"supports_tool_choice": true
},
"cerebras/llama3.3-70b": {
"max_tokens": 128000,
"max_input_tokens": 128000,
"max_output_tokens": 128000,
"input_cost_per_token": 0.00000085,
"output_cost_per_token": 0.0000012,
"litellm_provider": "cerebras",
"mode": "chat",
"supports_function_calling": true,
"supports_tool_choice": true
},
"friendliai/meta-llama-3.1-8b-instruct": {
"max_tokens": 8192,
"max_input_tokens": 8192,
Expand Down Expand Up @@ -5982,6 +5993,19 @@
"litellm_provider": "bedrock",
"mode": "chat"
},
"amazon.rerank-v1:0": {
"max_tokens": 32000,
"max_input_tokens": 32000,
"max_output_tokens": 32000,
"max_query_tokens": 32000,
"max_document_chunks_per_query": 100,
"max_tokens_per_document_chunk": 512,
"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,
Expand Down Expand Up @@ -7022,6 +7046,19 @@
"mode": "chat",
"supports_tool_choice": true
},
"cohere.rerank-v3-5:0": {
"max_tokens": 32000,
"max_input_tokens": 32000,
"max_output_tokens": 32000,
"max_query_tokens": 32000,
"max_document_chunks_per_query": 100,
"max_tokens_per_document_chunk": 512,
"input_cost_per_token": 0.0,
"input_cost_per_query": 0.002,
"output_cost_per_token": 0.0,
"litellm_provider": "bedrock",
"mode": "rerank"
},
"cohere.command-text-v14": {
"max_tokens": 4096,
"max_input_tokens": 4096,
Expand Down Expand Up @@ -7424,7 +7461,8 @@
"litellm_provider": "bedrock",
"mode": "chat",
"supports_function_calling": true,
"supports_tool_choice": false
"supports_tool_choice": false,
"supports_vision": true
},
"us.meta.llama3-2-11b-instruct-v1:0": {
"max_tokens": 128000,
Expand All @@ -7435,7 +7473,8 @@
"litellm_provider": "bedrock",
"mode": "chat",
"supports_function_calling": true,
"supports_tool_choice": false
"supports_tool_choice": false,
"supports_vision": true
},
"meta.llama3-2-90b-instruct-v1:0": {
"max_tokens": 128000,
Expand All @@ -7446,7 +7485,8 @@
"litellm_provider": "bedrock",
"mode": "chat",
"supports_function_calling": true,
"supports_tool_choice": false
"supports_tool_choice": false,
"supports_vision": true
},
"us.meta.llama3-2-90b-instruct-v1:0": {
"max_tokens": 128000,
Expand All @@ -7457,7 +7497,8 @@
"litellm_provider": "bedrock",
"mode": "chat",
"supports_function_calling": true,
"supports_tool_choice": false
"supports_tool_choice": false,
"supports_vision": true
},
"us.meta.llama3-3-70b-instruct-v1:0": {
"max_tokens": 4096,
Expand Down Expand Up @@ -9154,5 +9195,15 @@
"input_cost_per_second": 0.00003333,
"output_cost_per_second": 0.00,
"litellm_provider": "assemblyai"
},
"jina-reranker-v2-base-multilingual": {
"max_tokens": 1024,
"max_input_tokens": 1024,
"max_output_tokens": 1024,
"max_document_chunks_per_query": 2048,
"input_cost_per_token": 0.000000018,
"output_cost_per_token": 0.000000018,
"litellm_provider": "jina_ai",
"mode": "rerank"
}
}
1 change: 1 addition & 0 deletions tests/litellm_utils_tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,7 @@ def test_models_by_provider():
elif (
v["litellm_provider"] == "sagemaker"
or v["litellm_provider"] == "bedrock_converse"
or v["litellm_provider"] == "jina_ai"
):
continue
else:
Expand Down
1 change: 1 addition & 0 deletions tests/llm_translation/test_bedrock_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -2535,6 +2535,7 @@ def test_bedrock_error_handling_streaming():
)
@pytest.mark.flaky(retries=6, delay=2)
@pytest.mark.asyncio
@pytest.mark.skip(reason="Bedrock Raising Internal Server Error for this API call")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note - this was bedrock API that was having an outage for this specific request.

BedrockException - {"message":"The system encountered an unexpected error during processing. Try your request again."}

async def test_bedrock_document_understanding(image_url):
from litellm import acompletion

Expand Down
1 change: 1 addition & 0 deletions tests/llm_translation/test_rerank.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ async def test_basic_rerank(sync_mode):

@pytest.mark.asyncio()
@pytest.mark.parametrize("sync_mode", [True, False])
@pytest.mark.skip(reason="Together AI has 503 Service Unavailable Error")
async def test_basic_rerank_together_ai(sync_mode):
if sync_mode is True:
response = litellm.rerank(
Expand Down
Loading