mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
add test for vertex basic pass throgh
This commit is contained in:
parent
8ed0ffea54
commit
f3f85f6141
5 changed files with 214 additions and 0 deletions
14
litellm/proxy/example_config_yaml/custom_auth_basic.py
Normal file
14
litellm/proxy/example_config_yaml/custom_auth_basic.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from fastapi import Request
|
||||
|
||||
from litellm.proxy._types import UserAPIKeyAuth
|
||||
|
||||
|
||||
async def user_api_key_auth(request: Request, api_key: str) -> UserAPIKeyAuth:
|
||||
try:
|
||||
return UserAPIKeyAuth(
|
||||
api_key="best-api-key-ever",
|
||||
user_id="best-user-id-ever",
|
||||
team_id="best-team-id-ever",
|
||||
)
|
||||
except:
|
||||
raise Exception
|
Loading…
Add table
Add a link
Reference in a new issue