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]

Update model logging format for custom LLM provider (#16485)

Francesco Bertolotti06efc7631db5
diff --git a/litellm/caching/caching_handler.py b/litellm/caching/caching_handler.py
index 6bbc3231224..628ee118e9c 100644
--- a/litellm/caching/caching_handler.py
+++ b/litellm/caching/caching_handler.py
@@ -314,7 +314,7 @@ class LLMCachingHandler:
)
self._update_litellm_logging_obj_environment(
logging_obj=logging_obj,
- model=model,
+ model=f"{custom_llm_provider}/{model}",
kwargs=kwargs,
cached_result=cached_result,
is_async=False,