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: code quality tests
Sameer Kankute2023982218ee
diff --git a/litellm/llms/openrouter/image_generation/transformation.py b/litellm/llms/openrouter/image_generation/transformation.pyindex 9d1ef8511e1..92084b533af 100644--- a/litellm/llms/openrouter/image_generation/transformation.py+++ b/litellm/llms/openrouter/image_generation/transformation.py@@ -196,7 +196,6 @@ class OpenRouterImageGenerationConfig(BaseImageGenerationConfig):usage_data = response_json.get("usage", {})if usage_data:prompt_tokens = usage_data.get("prompt_tokens", 0)- completion_tokens = usage_data.get("completion_tokens", 0)total_tokens = usage_data.get("total_tokens", 0)completion_tokens_details = usage_data.get("completion_tokens_details", {})