mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
Update litellm/proxy/auth/handle_jwt.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
d32c508ed6
commit
4c975957ec
1 changed files with 5 additions and 0 deletions
|
|
@ -249,6 +249,11 @@ class JWTHandler:
|
|||
default=None,
|
||||
)
|
||||
if isinstance(singular, list):
|
||||
if singular:
|
||||
verbose_proxy_logger.debug(
|
||||
f"JWT Auth: team_id_jwt_field '{self.litellm_jwtauth.team_id_jwt_field}' "
|
||||
f"returned a list {singular}; using first element '{singular[0]}' automatically."
|
||||
)
|
||||
singular = singular[0] if singular else None
|
||||
if singular and singular not in team_ids:
|
||||
team_ids.append(singular)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue