mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
add /rerank test
This commit is contained in:
parent
df4f1458e6
commit
d4db993130
3 changed files with 71 additions and 0 deletions
|
@ -88,6 +88,8 @@ def _get_bearer_token(
|
|||
api_key = api_key.replace("Bearer ", "") # extract the token
|
||||
elif api_key.startswith("Basic "):
|
||||
api_key = api_key.replace("Basic ", "") # handle langfuse input
|
||||
elif api_key.startswith("bearer "):
|
||||
api_key = api_key.replace("bearer ", "")
|
||||
else:
|
||||
api_key = ""
|
||||
return api_key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue