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 native cachedContents endpoint
Ishaan Jaff8c2d63b6a2ae
diff --git a/litellm/llms/fine_tuning_apis/vertex_ai.py b/litellm/llms/fine_tuning_apis/vertex_ai.pyindex ffdb82c5b47..beebb0d565f 100644--- a/litellm/llms/fine_tuning_apis/vertex_ai.py+++ b/litellm/llms/fine_tuning_apis/vertex_ai.py@@ -279,12 +279,6 @@ class VertexFineTuningAPI(VertexLLM):elif "countTokens" in request_route:url = f"https://{vertex_location}-aiplatform.googleapis.com/v1/projects/{vertex_project}/locations/{vertex_location}{request_route}"elif "cachedContents" in request_route:- _model = request_data.get("model")- if _model is not None and "/publishers/google/models/" not in _model:- request_data["model"] = (- f"projects/{vertex_project}/locations/{vertex_location}/publishers/google/models/{_model}"- )-url = f"https://{vertex_location}-aiplatform.googleapis.com/v1beta1/projects/{vertex_project}/locations/{vertex_location}{request_route}"else:raise ValueError(f"Unsupported Vertex AI request route: {request_route}")