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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
comment code not used
Sameer Kankute0cc52c758230
diff --git a/litellm/llms/bedrock/common_utils.py b/litellm/llms/bedrock/common_utils.pyindex cfcc96378ea..160cd9daa2b 100644--- a/litellm/llms/bedrock/common_utils.py+++ b/litellm/llms/bedrock/common_utils.py@@ -486,21 +486,21 @@ class BedrockModelInfo(BaseLLMModelInfo):) -> List[str]:return []- def get_provider_info(self, model: str) -> Optional[ProviderSpecificModelInfo]:- """- Handles Bedrock throughput suffixes like ":28k", ":51k".- """- import re+ # def get_provider_info(self, model: str) -> Optional[ProviderSpecificModelInfo]:+ # """+ # Handles Bedrock throughput suffixes like ":28k", ":51k".+ # """+ # import re- overrides: ProviderSpecificModelInfo = {}+ # overrides: ProviderSpecificModelInfo = {}- # Parse context window suffix (e.g., :28k, :51k)- match = re.search(r":(\d+)k$", model)- if match:- throughput_value = int(match.group(1)) * 1000- overrides["max_input_tokens"] = throughput_value+ # # Parse context window suffix (e.g., :28k, :51k)+ # match = re.search(r":(\d+)k$", model)+ # if match:+ # throughput_value = int(match.group(1)) * 1000+ # overrides["max_input_tokens"] = throughput_value- return overrides if overrides else None+ # return overrides if overrides else Nonedef get_token_counter(self) -> Optional[BaseTokenCounter]:"""