mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
Add supports_pdf_input: true to Claude 3.7 bedrock models (#9917)
* Add supports_pdf_input: true to Claude 3.7 bedrock models * update unit test --------- Co-authored-by: RupertoXTI <rmartinez@xtillion.com>
This commit is contained in:
parent
eebb725416
commit
298a3574f4
5 changed files with 21 additions and 1 deletions
|
|
@ -354,6 +354,7 @@ project = None
|
|||
config_path = None
|
||||
vertex_ai_safety_settings: Optional[dict] = None
|
||||
BEDROCK_CONVERSE_MODELS = [
|
||||
"anthropic.claude-3-7-sonnet-20250219-v1:0",
|
||||
"anthropic.claude-3-5-haiku-20241022-v1:0",
|
||||
"anthropic.claude-3-5-sonnet-20241022-v2:0",
|
||||
"anthropic.claude-3-5-sonnet-20240620-v1:0",
|
||||
|
|
|
|||
|
|
@ -8738,6 +8738,7 @@
|
|||
"supports_assistant_prefill": true,
|
||||
"supports_prompt_caching": true,
|
||||
"supports_response_schema": true,
|
||||
"supports_pdf_input": true,
|
||||
"supports_reasoning": true,
|
||||
"supports_tool_choice": true
|
||||
},
|
||||
|
|
@ -8856,6 +8857,7 @@
|
|||
"supports_assistant_prefill": true,
|
||||
"supports_prompt_caching": true,
|
||||
"supports_response_schema": true,
|
||||
"supports_pdf_input": true,
|
||||
"supports_tool_choice": true,
|
||||
"supports_reasoning": true
|
||||
},
|
||||
|
|
|
|||
|
|
@ -8738,6 +8738,7 @@
|
|||
"supports_assistant_prefill": true,
|
||||
"supports_prompt_caching": true,
|
||||
"supports_response_schema": true,
|
||||
"supports_pdf_input": true,
|
||||
"supports_reasoning": true,
|
||||
"supports_tool_choice": true
|
||||
},
|
||||
|
|
@ -8856,6 +8857,7 @@
|
|||
"supports_assistant_prefill": true,
|
||||
"supports_prompt_caching": true,
|
||||
"supports_response_schema": true,
|
||||
"supports_pdf_input": true,
|
||||
"supports_tool_choice": true,
|
||||
"supports_reasoning": true
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2127,6 +2127,20 @@ def test_get_provider_audio_transcription_config():
|
|||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"model, expected_bool",
|
||||
[
|
||||
("anthropic.claude-3-7-sonnet-20250219-v1:0", True),
|
||||
("us.anthropic.claude-3-7-sonnet-20250219-v1:0", True),
|
||||
],
|
||||
)
|
||||
|
||||
def test_claude_3_7_sonnet_supports_pdf_input(model, expected_bool):
|
||||
from litellm.utils import supports_pdf_input
|
||||
|
||||
assert supports_pdf_input(model) == expected_bool
|
||||
|
||||
|
||||
def test_get_valid_models_from_provider():
|
||||
"""
|
||||
Test that get_valid_models returns the correct models for a given provider
|
||||
|
|
@ -2178,5 +2192,5 @@ def test_get_valid_models_from_dynamic_api_key():
|
|||
valid_models = get_valid_models(custom_llm_provider="anthropic", litellm_params=creds, check_provider_endpoint=True)
|
||||
assert len(valid_models) > 0
|
||||
assert "anthropic/claude-3-7-sonnet-20250219" in valid_models
|
||||
|
||||
|
||||
|
||||
|
|
@ -27,6 +27,7 @@ anthropic.claude-3-5-haiku-20241022-v1:0
|
|||
anthropic.claude-3-opus-20240229-v1:0
|
||||
us.anthropic.claude-3-sonnet-20240229-v1:0
|
||||
us.anthropic.claude-3-5-sonnet-20240620-v1:0
|
||||
us.anthropic.claude-3-7-sonnet-20250219-v1:0
|
||||
us.anthropic.claude-3-5-sonnet-20241022-v2:0
|
||||
us.anthropic.claude-3-haiku-20240307-v1:0
|
||||
us.anthropic.claude-3-5-haiku-20241022-v1:0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue