Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix is_internal_user_role

Ishaan Jaff39fc8bdcaf99
diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py
index d57c44ae628..255e37186df 100644
--- a/litellm/proxy/_types.py
+++ b/litellm/proxy/_types.py
@@ -128,8 +128,8 @@ class LitellmUserRoles(str, enum.Enum):
def is_internal_user_role(self) -> bool:
"""returns true if this role is an `internal_user` or `internal_user_viewer` role"""
return self.value in [
- self.INTERNAL_USER.value,
- self.INTERNAL_USER_VIEW_ONLY.value,
+ self.INTERNAL_USER,
+ self.INTERNAL_USER_VIEW_ONLY,
]