diff --git a/litellm/llms/vertex_ai_and_google_ai_studio/gemini/vertex_and_google_ai_studio_gemini.py b/litellm/llms/vertex_ai_and_google_ai_studio/gemini/vertex_and_google_ai_studio_gemini.py index ab644485d4..37434fbd47 100644 --- a/litellm/llms/vertex_ai_and_google_ai_studio/gemini/vertex_and_google_ai_studio_gemini.py +++ b/litellm/llms/vertex_ai_and_google_ai_studio/gemini/vertex_and_google_ai_studio_gemini.py @@ -1206,7 +1206,7 @@ class VertexLLM(BaseLLM): api_base is not None ): # for cloudflare ai gateway - https://github.com/BerriAI/litellm/issues/4317 if custom_llm_provider == "gemini": - url = "{}/{}".format(api_base, endpoint) + url = "{}:{}".format(api_base, endpoint) auth_header = ( gemini_api_key # cloudflare expects api key as bearer token )