
    h                          d dl mZ dedefdZy)    )Requestrequestreturnc                 ~    | j                   j                  d      }|rd| S | j                   j                  dd      S )z
    Extract and format API key from request headers.
    Prioritizes x-litellm-api-key over Authorization header.


    Vertex JS SDK uses `Authorization` header, we use `x-litellm-api-key` to pass litellm virtual key

    zx-litellm-api-keyzBearer Authorization )headersget)r   litellm_api_keys     m/var/www/Befach/backend/env/lib/python3.12/site-packages/litellm/proxy/pass_through_endpoints/common_utils.pyget_litellm_virtual_keyr      sA     oo))*=>O)**??33    N)fastapir   strr    r   r   <module>r      s    4W 4 4r   