mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix pass through construct_target_url when vertex_proj is None
This commit is contained in:
parent
5c0480114e
commit
ea30be2d91
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ async def vertex_proxy_route(
|
|||
|
||||
verbose_proxy_logger.debug("requested endpoint %s", endpoint)
|
||||
headers: dict = {}
|
||||
|
||||
vertex_project = None
|
||||
vertex_location = None
|
||||
# Use headers from the incoming request if default_vertex_config is not set
|
||||
if default_vertex_config is None:
|
||||
headers = dict(request.headers) or {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue