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
fix(invoke_handler.py): remove hard code
Krrish Dholakia5089dbfcfb3a
diff --git a/litellm/llms/bedrock/chat/invoke_handler.py b/litellm/llms/bedrock/chat/invoke_handler.pyindex 84ac592c411..5b02fd3158d 100644--- a/litellm/llms/bedrock/chat/invoke_handler.py+++ b/litellm/llms/bedrock/chat/invoke_handler.py@@ -1274,13 +1274,6 @@ class AWSEventStreamDecoder:def converse_chunk_parser(self, chunk_data: dict) -> ModelResponseStream:try:verbose_logger.debug("\n\nRaw Chunk: {}\n\n".format(chunk_data))- chunk_data["usage"] = {- "inputTokens": 3,- "outputTokens": 392,- "totalTokens": 2191,- "cacheReadInputTokens": 1796,- "cacheWriteInputTokens": 0,- }text = ""tool_use: Optional[ChatCompletionToolCallChunk] = Nonefinish_reason = ""diff --git a/litellm/proxy/_new_secret_config.yaml b/litellm/proxy/_new_secret_config.yamlindex fbe3471663c..cf09749d81b 100644--- a/litellm/proxy/_new_secret_config.yaml+++ b/litellm/proxy/_new_secret_config.yaml@@ -9,6 +9,10 @@ model_list:litellm_params:model: gpt-4o-miniapi_key: os.environ/OPENAI_API_KEY+ - model_name: "bedrock-nova"+ litellm_params:+ model: us.amazon.nova-pro-v1:0+litellm_settings:num_retries: 0