mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
add /rerank test
This commit is contained in:
parent
5f2f7aa754
commit
c27640e6e4
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