mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-12 08:23:23 +00:00
(gemini): Fix Cloudflare AI Gateway typo. (#5429)
This commit is contained in:
+1
-1
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user