Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Litellm dev 12 24 2024 p3 (#7403)

Krish Dholakia3ac54483a7d1
diff --git a/litellm/__init__.py b/litellm/__init__.py
index f8a5eac3e5e..61151134f9d 100644
--- a/litellm/__init__.py
+++ b/litellm/__init__.py
@@ -1049,7 +1049,7 @@ from .llms.petals.completion.transformation import PetalsConfig
from .llms.deprecated_providers.aleph_alpha import AlephAlphaConfig
from .llms.vertex_ai.gemini.vertex_and_google_ai_studio_gemini import (
VertexGeminiConfig,
- VertexAIConfig,
+ VertexGeminiConfig as VertexAIConfig,
)
from .llms.gemini.chat.transformation import (
GoogleAIStudioGeminiConfig,
diff --git a/litellm/litellm_core_utils/get_supported_openai_params.py b/litellm/litellm_core_utils/get_supported_openai_params.py
index 8046589c07c..13ba088c8e6 100644
--- a/litellm/litellm_core_utils/get_supported_openai_params.py
+++ b/litellm/litellm_core_utils/get_supported_openai_params.py
@@ -111,7 +111,7 @@ def get_supported_openai_params( # noqa: PLR0915
return litellm.GoogleAIStudioGeminiConfig().get_supported_openai_params(
model=model
)
- elif custom_llm_provider == "vertex_ai":
+ elif custom_llm_provider == "vertex_ai" or custom_llm_provider == "vertex_ai_beta":
if request_type == "chat_completion":
if model.startswith("meta/"):
return litellm.VertexAILlama3Config().get_supported_openai_params()
@@ -127,11 +127,6 @@ def get_supported_openai_params( # noqa: PLR0915
return litellm.VertexAIAnthropicConfig().get_supported_openai_params(
model=model
)
- return litellm.VertexAIConfig().get_supported_openai_params()
- elif request_type == "embeddings":
- return litellm.VertexAITextEmbeddingConfig().get_supported_openai_params()
- elif custom_llm_provider == "vertex_ai_beta":
- if request_type == "chat_completion":
return litellm.VertexGeminiConfig().get_supported_openai_params(model=model)
elif request_type == "embeddings":
return litellm.VertexAITextEmbeddingConfig().get_supported_openai_params()
diff --git a/litellm/llms/bedrock/chat/invoke_handler.py b/litellm/llms/bedrock/chat/invoke_handler.py
index 046f0dc60f2..d0ceea37b30 100644
--- a/litellm/llms/bedrock/chat/invoke_handler.py
+++ b/litellm/llms/bedrock/chat/invoke_handler.py
@@ -791,7 +791,7 @@ class BedrockLLM(BaseAWSLLM):
)
raise BedrockError(
status_code=404,
- message="Bedrock HTTPX: Unknown provider={}, model={}".format(
+ message="Bedrock Invoke HTTPX: Unknown provider={}, model={}. Try calling via converse route - `bedrock/converse/<model>`.".format(
provider, model
),
)
diff --git a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py
index c799d47a684..3f679b1aafb 100644
--- a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py
+++ b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py
@@ -2,7 +2,6 @@
## httpx client for vertex ai calls
## Initial implementation - covers gemini + image gen calls
import json
-import types
import uuid
from copy import deepcopy
from functools import partial
@@ -78,145 +77,7 @@ else:
LoggingClass = Any
-class VertexAIConfig:
- """
- Reference: https://cloud.google.com/vertex-ai/docs/generative-ai/chat/test-chat-prompts
- Reference: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference
-
- The class `VertexAIConfig` provides configuration for the VertexAI's API interface. Below are the parameters:
-
- - `temperature` (float): This controls the degree of randomness in token selection.
-
- - `max_output_tokens` (integer): This sets the limitation for the maximum amount of token in the text output. In this case, the default value is 256.
-
- - `top_p` (float): The tokens are selected from the most probable to the least probable until the sum of their probabilities equals the `top_p` value. Default is 0.95.
-
- - `top_k` (integer): The value of `top_k` determines how many of the most probable tokens are considered in the selection. For example, a `top_k` of 1 means the selected token is the most probable among all tokens. The default value is 40.
-
- - `response_mime_type` (str): The MIME type of the response. The default value is 'text/plain'.
-
- - `candidate_count` (int): Number of generated responses to return.
-
- - `stop_sequences` (List[str]): The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a stop sequence. The stop sequence will not be included as part of the response.
-
- - `frequency_penalty` (float): This parameter is used to penalize the model from repeating the same output. The default value is 0.0.
-
- - `presence_penalty` (float): This parameter is used to penalize the model from generating the same output as the input. The default value is 0.0.
-
- Note: Please make sure to modify the default parameters as required for your use case.
- """
-
- temperature: Optional[float] = None
- max_output_tokens: Optional[int] = None
- top_p: Optional[float] = None
- top_k: Optional[int] = None
- response_mime_type: Optional[str] = None
- candidate_count: Optional[int] = None
- stop_sequences: Optional[list] = None
- frequency_penalty: Optional[float] = None
- presence_penalty: Optional[float] = None
-
- def __init__(
- self,
- temperature: Optional[float] = None,
- max_output_tokens: Optional[int] = None,
- top_p: Optional[float] = None,
- top_k: Optional[int] = None,
- response_mime_type: Optional[str] = None,
- candidate_count: Optional[int] = None,
- stop_sequences: Optional[list] = None,
- frequency_penalty: Optional[float] = None,
- presence_penalty: Optional[float] = None,
- ) -> None:
- locals_ = locals()
- for key, value in locals_.items():
- if key != "self" and value is not None:
- setattr(self.__class__, key, value)
-
- @classmethod
- def get_config(cls):
- return {
- k: v
- for k, v in cls.__dict__.items()
- if not k.startswith("__")
- and not isinstance(
- v,
- (
- types.FunctionType,
- types.BuiltinFunctionType,
- classmethod,
- staticmethod,
- ),
- )
- and v is not None
- }
-
- def get_supported_openai_params(self):
- return [
- "temperature",
- "top_p",
- "max_tokens",
- "max_completion_tokens",
- "stream",
- "tools",
- "tool_choice",
- "response_format",
- "n",
- "stop",
- "extra_headers",
- ]
-
- def map_openai_params(self, non_default_params: dict, optional_params: dict):
- for param, value in non_default_params.items():
- if param == "temperature":
- optional_params["temperature"] = value
- if param == "top_p":
- optional_params["top_p"] = value
- if (
- param == "stream" and value is True
- ): # sending stream = False, can cause it to get passed unchecked and raise issues
- optional_params["stream"] = value
- if param == "n":
- optional_params["candidate_count"] = value
- if param == "stop":
- if isinstance(value, str):
- optional_params["stop_sequences"] = [value]
- elif isinstance(value, list):
- optional_params["stop_sequences"] = value
- if param == "max_tokens" or param == "max_completion_tokens":
- optional_params["max_output_tokens"] = value
- if (
- param == "response_format"
- and isinstance(value, dict)
- and value["type"] == "json_object"
- ):
- optional_params["response_mime_type"] = "application/json"
- if param == "frequency_penalty":
- optional_params["frequency_penalty"] = value
- if param == "presence_penalty":
- optional_params["presence_penalty"] = value
- if param == "tools" and isinstance(value, list):
- from vertexai.preview import generative_models
-
- gtool_func_declarations = []
- for tool in value:
- gtool_func_declaration = generative_models.FunctionDeclaration(
- name=tool["function"]["name"],
- description=tool["function"].get("description", ""),
- parameters=tool["function"].get("parameters", {}),
- )
- gtool_func_declarations.append(gtool_func_declaration)
- optional_params["tools"] = [
- generative_models.Tool(
- function_declarations=gtool_func_declarations
- )
- ]
- if param == "tool_choice" and (
- isinstance(value, str) or isinstance(value, dict)
- ):
- pass
- return optional_params
-
+class VertexAIBaseConfig:
def get_mapped_special_auth_params(self) -> dict:
"""
Common auth params across bedrock/vertex_ai/azure/watsonx
@@ -264,7 +125,7 @@ class VertexAIConfig:
]
-class VertexGeminiConfig(BaseConfig):
+class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig):
"""
Reference: https://cloud.google.com/vertex-ai/docs/generative-ai/chat/test-chat-prompts
Reference: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 46949db5124..1c655061766 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -132,6 +132,22 @@
"supports_audio_output": true,
"supports_system_messages": true
},
+ "gpt-4o-audio-preview-2024-12-17": {
+ "max_tokens": 16384,
+ "max_input_tokens": 128000,
+ "max_output_tokens": 16384,
+ "input_cost_per_token": 0.0000025,
+ "input_cost_per_audio_token": 0.00004,
+ "output_cost_per_token": 0.000010,
+ "output_cost_per_audio_token": 0.00008,
+ "litellm_provider": "openai",
+ "mode": "chat",
+ "supports_function_calling": true,
+ "supports_parallel_function_calling": true,
+ "supports_audio_input": true,
+ "supports_audio_output": true,
+ "supports_system_messages": true
+ },
"gpt-4o-audio-preview-2024-10-01": {
"max_tokens": 16384,
"max_input_tokens": 128000,
@@ -6029,7 +6045,7 @@
"max_output_tokens": 4096,
"input_cost_per_token": 0.00000072,
"output_cost_per_token": 0.00000072,
- "litellm_provider": "bedrock",
+ "litellm_provider": "bedrock_converse",
"mode": "chat"
},
"meta.llama2-13b-chat-v1": {
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 46949db5124..1c655061766 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -132,6 +132,22 @@
"supports_audio_output": true,
"supports_system_messages": true
},
+ "gpt-4o-audio-preview-2024-12-17": {
+ "max_tokens": 16384,
+ "max_input_tokens": 128000,
+ "max_output_tokens": 16384,
+ "input_cost_per_token": 0.0000025,
+ "input_cost_per_audio_token": 0.00004,
+ "output_cost_per_token": 0.000010,
+ "output_cost_per_audio_token": 0.00008,
+ "litellm_provider": "openai",
+ "mode": "chat",
+ "supports_function_calling": true,
+ "supports_parallel_function_calling": true,
+ "supports_audio_input": true,
+ "supports_audio_output": true,
+ "supports_system_messages": true
+ },
"gpt-4o-audio-preview-2024-10-01": {
"max_tokens": 16384,
"max_input_tokens": 128000,
@@ -6029,7 +6045,7 @@
"max_output_tokens": 4096,
"input_cost_per_token": 0.00000072,
"output_cost_per_token": 0.00000072,
- "litellm_provider": "bedrock",
+ "litellm_provider": "bedrock_converse",
"mode": "chat"
},
"meta.llama2-13b-chat-v1": {
diff --git a/tests/llm_translation/test_bedrock_completion.py b/tests/llm_translation/test_bedrock_completion.py
index 5efb280746f..43a7075e3cd 100644
--- a/tests/llm_translation/test_bedrock_completion.py
+++ b/tests/llm_translation/test_bedrock_completion.py
@@ -2238,6 +2238,32 @@ def test_bedrock_nova_topk(top_k_param):
)
+def test_bedrock_cross_region_inference(monkeypatch):
+ from litellm.llms.custom_httpx.http_handler import HTTPHandler
+
+ monkeypatch.setenv("LITELLM_LOCAL_MODEL_COST_MAP", "True")
+ litellm.model_cost = litellm.get_model_cost_map(url="")
+ litellm.add_known_models()
+
+ litellm.set_verbose = True
+ client = HTTPHandler()
+
+ with patch.object(client, "post") as mock_post:
+ try:
+ completion(
+ model="bedrock/us.meta.llama3-3-70b-instruct-v1:0",
+ messages=[{"role": "user", "content": "Hello, world!"}],
+ client=client,
+ )
+ except Exception as e:
+ print(e)
+
+ assert (
+ mock_post.call_args.kwargs["url"]
+ == "https://bedrock-runtime.us-west-2.amazonaws.com/model/us.meta.llama3-3-70b-instruct-v1:0/converse"
+ )
+
+
def test_bedrock_empty_content_real_call():
completion(
model="bedrock/anthropic.claude-3-sonnet-20240229-v1:0",
diff --git a/tests/llm_translation/test_max_completion_tokens.py b/tests/llm_translation/test_max_completion_tokens.py
index 53a1d4c555c..e63198295a0 100644
--- a/tests/llm_translation/test_max_completion_tokens.py
+++ b/tests/llm_translation/test_max_completion_tokens.py
@@ -352,16 +352,19 @@ def test_all_model_configs():
) == {"max_tokens": 10}
from litellm.llms.vertex_ai.gemini.vertex_and_google_ai_studio_gemini import (
- VertexAIConfig,
VertexGeminiConfig,
)
from litellm.llms.gemini.chat.transformation import GoogleAIStudioGeminiConfig
- assert "max_completion_tokens" in VertexAIConfig().get_supported_openai_params()
+ assert "max_completion_tokens" in VertexGeminiConfig().get_supported_openai_params(
+ model="gemini-1.0-pro"
+ )
- assert VertexAIConfig().map_openai_params(
+ assert VertexGeminiConfig().map_openai_params(
+ model="gemini-1.0-pro",
non_default_params={"max_completion_tokens": 10},
optional_params={},
+ drop_params=False,
) == {"max_output_tokens": 10}
assert (
diff --git a/tests/llm_translation/test_optional_params.py b/tests/llm_translation/test_optional_params.py
index 341484595c9..71816609bc0 100644
--- a/tests/llm_translation/test_optional_params.py
+++ b/tests/llm_translation/test_optional_params.py
@@ -987,3 +987,15 @@ def test_ollama_pydantic_obj():
custom_llm_provider="ollama",
response_format=ResponseFormat,
)
+
+
+def test_gemini_frequency_penalty():
+ from litellm.utils import get_supported_openai_params
+
+ optional_params = get_supported_openai_params(
+ model="gemini-1.5-flash",
+ custom_llm_provider="vertex_ai",
+ request_type="chat_completion",
+ )
+ assert optional_params is not None
+ assert "frequency_penalty" in optional_params
diff --git a/tests/local_testing/test_get_model_info.py b/tests/local_testing/test_get_model_info.py
index a5b3b31ec66..c363794d171 100644
--- a/tests/local_testing/test_get_model_info.py
+++ b/tests/local_testing/test_get_model_info.py
@@ -4,6 +4,8 @@ import os
import sys
import traceback
+from typing import List, Dict, Any
+
sys.path.insert(
0, os.path.abspath("../..")
) # Adds the parent directory to the system path
@@ -158,3 +160,84 @@ def test_get_model_info_ft_model_with_provider_prefix():
info = litellm.get_model_info(**args)
print("info", info)
assert info["key"] == "ft:gpt-3.5-turbo"
+
+
+def test_get_whitelisted_models():
+ """
+ Snapshot of all bedrock models as of 12/24/2024.
+
+ Enforce any new bedrock chat model to be added as `bedrock_converse` unless explicitly whitelisted.
+
+ Create whitelist to prevent naming regressions for older litellm versions.
+ """
+ whitelisted_models = []
+ for model, info in litellm.model_cost.items():
+ if info["litellm_provider"] == "bedrock" and info["mode"] == "chat":
+ whitelisted_models.append(model)
+
+ # Write to a local file
+ with open("whitelisted_bedrock_models.txt", "w") as file:
+ for model in whitelisted_models:
+ file.write(f"{model}\n")
+
+ print("whitelisted_models written to whitelisted_bedrock_models.txt")
+
+
+def _enforce_bedrock_converse_models(
+ model_cost: List[Dict[str, Any]], whitelist_models: List[str]
+):
+ """
+ Assert all new bedrock chat models are added as `bedrock_converse` unless explicitly whitelisted.
+ """
+ # Check for unwhitelisted models
+ for model, info in litellm.model_cost.items():
+ if (
+ info["litellm_provider"] == "bedrock"
+ and info["mode"] == "chat"
+ and model not in whitelist_models
+ ):
+ raise AssertionError(
+ f"New bedrock chat model detected: {model}. Please set `litellm_provider='bedrock_converse'` for this model."
+ )
+
+
+def test_model_info_bedrock_converse(monkeypatch):
+ """
+ Assert all new bedrock chat models are added as `bedrock_converse` unless explicitly whitelisted.
+
+ This ensures they are automatically routed to the converse endpoint.
+ """
+ monkeypatch.setenv("LITELLM_LOCAL_MODEL_COST_MAP", "True")
+ litellm.model_cost = litellm.get_model_cost_map(url="")
+
+ # Load whitelist models from file
+ with open("whitelisted_bedrock_models.txt", "r") as file:
+ whitelist_models = [line.strip() for line in file.readlines()]
+
+ _enforce_bedrock_converse_models(
+ model_cost=litellm.model_cost, whitelist_models=whitelist_models
+ )
+
+
+def test_model_info_bedrock_converse_enforcement(monkeypatch):
+ """
+ Test the enforcement of the whitelist by adding a fake model and ensuring the test fails.
+ """
+ monkeypatch.setenv("LITELLM_LOCAL_MODEL_COST_MAP", "True")
+ litellm.model_cost = litellm.get_model_cost_map(url="")
+
+ # Add a fake unwhitelisted model
+ litellm.model_cost["fake.bedrock-chat-model"] = {
+ "litellm_provider": "bedrock",
+ "mode": "chat",
+ }
+
+ # Load whitelist models from file
+ with open("whitelisted_bedrock_models.txt", "r") as file:
+ whitelist_models = [line.strip() for line in file.readlines()]
+
+ # Check for unwhitelisted models
+ with pytest.raises(AssertionError):
+ _enforce_bedrock_converse_models(
+ model_cost=litellm.model_cost, whitelist_models=whitelist_models
+ )
diff --git a/tests/local_testing/whitelisted_bedrock_models.txt b/tests/local_testing/whitelisted_bedrock_models.txt
new file mode 100644
index 00000000000..ef353f5ae35
--- /dev/null
+++ b/tests/local_testing/whitelisted_bedrock_models.txt
@@ -0,0 +1,133 @@
+ai21.j2-mid-v1
+ai21.j2-ultra-v1
+ai21.jamba-instruct-v1:0
+amazon.titan-text-lite-v1
+amazon.titan-text-express-v1
+amazon.titan-text-premier-v1:0
+mistral.mistral-7b-instruct-v0:2
+mistral.mixtral-8x7b-instruct-v0:1
+mistral.mistral-large-2402-v1:0
+mistral.mistral-large-2407-v1:0
+mistral.mistral-small-2402-v1:0
+bedrock/us-west-2/mistral.mixtral-8x7b-instruct-v0:1
+bedrock/us-east-1/mistral.mixtral-8x7b-instruct-v0:1
+bedrock/eu-west-3/mistral.mixtral-8x7b-instruct-v0:1
+bedrock/us-west-2/mistral.mistral-7b-instruct-v0:2
+bedrock/us-east-1/mistral.mistral-7b-instruct-v0:2
+bedrock/eu-west-3/mistral.mistral-7b-instruct-v0:2
+bedrock/us-east-1/mistral.mistral-large-2402-v1:0
+bedrock/us-west-2/mistral.mistral-large-2402-v1:0
+bedrock/eu-west-3/mistral.mistral-large-2402-v1:0
+anthropic.claude-3-sonnet-20240229-v1:0
+anthropic.claude-3-5-sonnet-20240620-v1:0
+anthropic.claude-3-5-sonnet-20241022-v2:0
+anthropic.claude-3-haiku-20240307-v1:0
+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-5-sonnet-20241022-v2:0
+us.anthropic.claude-3-haiku-20240307-v1:0
+us.anthropic.claude-3-5-haiku-20241022-v1:0
+us.anthropic.claude-3-opus-20240229-v1:0
+eu.anthropic.claude-3-sonnet-20240229-v1:0
+eu.anthropic.claude-3-5-sonnet-20240620-v1:0
+eu.anthropic.claude-3-5-sonnet-20241022-v2:0
+eu.anthropic.claude-3-haiku-20240307-v1:0
+eu.anthropic.claude-3-5-haiku-20241022-v1:0
+eu.anthropic.claude-3-opus-20240229-v1:0
+anthropic.claude-v1
+bedrock/us-east-1/anthropic.claude-v1
+bedrock/us-west-2/anthropic.claude-v1
+bedrock/ap-northeast-1/anthropic.claude-v1
+bedrock/ap-northeast-1/1-month-commitment/anthropic.claude-v1
+bedrock/ap-northeast-1/6-month-commitment/anthropic.claude-v1
+bedrock/eu-central-1/anthropic.claude-v1
+bedrock/eu-central-1/1-month-commitment/anthropic.claude-v1
+bedrock/eu-central-1/6-month-commitment/anthropic.claude-v1
+bedrock/us-east-1/1-month-commitment/anthropic.claude-v1
+bedrock/us-east-1/6-month-commitment/anthropic.claude-v1
+bedrock/us-west-2/1-month-commitment/anthropic.claude-v1
+bedrock/us-west-2/6-month-commitment/anthropic.claude-v1
+anthropic.claude-v2
+bedrock/us-east-1/anthropic.claude-v2
+bedrock/us-west-2/anthropic.claude-v2
+bedrock/ap-northeast-1/anthropic.claude-v2
+bedrock/ap-northeast-1/1-month-commitment/anthropic.claude-v2
+bedrock/ap-northeast-1/6-month-commitment/anthropic.claude-v2
+bedrock/eu-central-1/anthropic.claude-v2
+bedrock/eu-central-1/1-month-commitment/anthropic.claude-v2
+bedrock/eu-central-1/6-month-commitment/anthropic.claude-v2
+bedrock/us-east-1/1-month-commitment/anthropic.claude-v2
+bedrock/us-east-1/6-month-commitment/anthropic.claude-v2
+bedrock/us-west-2/1-month-commitment/anthropic.claude-v2
+bedrock/us-west-2/6-month-commitment/anthropic.claude-v2
+anthropic.claude-v2:1
+bedrock/us-east-1/anthropic.claude-v2:1
+bedrock/us-west-2/anthropic.claude-v2:1
+bedrock/ap-northeast-1/anthropic.claude-v2:1
+bedrock/ap-northeast-1/1-month-commitment/anthropic.claude-v2:1
+bedrock/ap-northeast-1/6-month-commitment/anthropic.claude-v2:1
+bedrock/eu-central-1/anthropic.claude-v2:1
+bedrock/eu-central-1/1-month-commitment/anthropic.claude-v2:1
+bedrock/eu-central-1/6-month-commitment/anthropic.claude-v2:1
+bedrock/us-east-1/1-month-commitment/anthropic.claude-v2:1
+bedrock/us-east-1/6-month-commitment/anthropic.claude-v2:1
+bedrock/us-west-2/1-month-commitment/anthropic.claude-v2:1
+bedrock/us-west-2/6-month-commitment/anthropic.claude-v2:1
+anthropic.claude-instant-v1
+bedrock/us-east-1/anthropic.claude-instant-v1
+bedrock/us-east-1/1-month-commitment/anthropic.claude-instant-v1
+bedrock/us-east-1/6-month-commitment/anthropic.claude-instant-v1
+bedrock/us-west-2/1-month-commitment/anthropic.claude-instant-v1
+bedrock/us-west-2/6-month-commitment/anthropic.claude-instant-v1
+bedrock/us-west-2/anthropic.claude-instant-v1
+bedrock/ap-northeast-1/anthropic.claude-instant-v1
+bedrock/ap-northeast-1/1-month-commitment/anthropic.claude-instant-v1
+bedrock/ap-northeast-1/6-month-commitment/anthropic.claude-instant-v1
+bedrock/eu-central-1/anthropic.claude-instant-v1
+bedrock/eu-central-1/1-month-commitment/anthropic.claude-instant-v1
+bedrock/eu-central-1/6-month-commitment/anthropic.claude-instant-v1
+cohere.command-text-v14
+bedrock/*/1-month-commitment/cohere.command-text-v14
+bedrock/*/6-month-commitment/cohere.command-text-v14
+cohere.command-light-text-v14
+bedrock/*/1-month-commitment/cohere.command-light-text-v14
+bedrock/*/6-month-commitment/cohere.command-light-text-v14
+cohere.command-r-plus-v1:0
+cohere.command-r-v1:0
+meta.llama3-3-70b-instruct-v1:0
+meta.llama2-13b-chat-v1
+meta.llama2-70b-chat-v1
+meta.llama3-8b-instruct-v1:0
+bedrock/us-east-1/meta.llama3-8b-instruct-v1:0
+bedrock/us-west-1/meta.llama3-8b-instruct-v1:0
+bedrock/ap-south-1/meta.llama3-8b-instruct-v1:0
+bedrock/ca-central-1/meta.llama3-8b-instruct-v1:0
+bedrock/eu-west-1/meta.llama3-8b-instruct-v1:0
+bedrock/eu-west-2/meta.llama3-8b-instruct-v1:0
+bedrock/sa-east-1/meta.llama3-8b-instruct-v1:0
+meta.llama3-70b-instruct-v1:0
+bedrock/us-east-1/meta.llama3-70b-instruct-v1:0
+bedrock/us-west-1/meta.llama3-70b-instruct-v1:0
+bedrock/ap-south-1/meta.llama3-70b-instruct-v1:0
+bedrock/ca-central-1/meta.llama3-70b-instruct-v1:0
+bedrock/eu-west-1/meta.llama3-70b-instruct-v1:0
+bedrock/eu-west-2/meta.llama3-70b-instruct-v1:0
+bedrock/sa-east-1/meta.llama3-70b-instruct-v1:0
+meta.llama3-1-8b-instruct-v1:0
+us.meta.llama3-1-8b-instruct-v1:0
+meta.llama3-1-70b-instruct-v1:0
+us.meta.llama3-1-70b-instruct-v1:0
+meta.llama3-1-405b-instruct-v1:0
+us.meta.llama3-1-405b-instruct-v1:0
+meta.llama3-2-1b-instruct-v1:0
+us.meta.llama3-2-1b-instruct-v1:0
+eu.meta.llama3-2-1b-instruct-v1:0
+meta.llama3-2-3b-instruct-v1:0
+us.meta.llama3-2-3b-instruct-v1:0
+eu.meta.llama3-2-3b-instruct-v1:0
+meta.llama3-2-11b-instruct-v1:0
+us.meta.llama3-2-11b-instruct-v1:0
+meta.llama3-2-90b-instruct-v1:0
+us.meta.llama3-2-90b-instruct-v1:0