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 img gen cost
Ishaan Jaffc8cedbed202a
diff --git a/litellm/main.py b/litellm/main.pyindex 26eebfb1706..f094d748777 100644--- a/litellm/main.py+++ b/litellm/main.py@@ -4434,6 +4434,8 @@ def image_generation( # noqa: PLR0915},custom_llm_provider=custom_llm_provider,)+ if "custom_llm_provider" not in logging.model_call_details:+ logging.model_call_details["custom_llm_provider"] = custom_llm_providerif mock_response is not None:return mock_image_generation(model=model, mock_response=mock_response)