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
Add custom llm provider in vertex ai embeddings
Sameer Kankuteeffebdab3876
diff --git a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.pyindex dae2a7f081a..407cbd2f3d0 100644--- a/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py+++ b/litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py@@ -148,6 +148,8 @@ class VertexPassthroughLoggingHandler:logging_obj.model = modellogging_obj.model_call_details["model"] = logging_obj.model+ logging_obj.model_call_details["custom_llm_provider"] = "vertex_ai"+ logging_obj.custom_llm_provider = "vertex_ai"response_cost = litellm.completion_cost(completion_response=litellm_prediction_response,model=model,@@ -156,6 +158,7 @@ class VertexPassthroughLoggingHandler:kwargs["response_cost"] = response_costkwargs["model"] = model+ kwargs["custom_llm_provider"] = "vertex_ai"logging_obj.model_call_details["response_cost"] = response_costreturn {