mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
add has_client_credentials
This commit is contained in:
parent
bb17ca15e9
commit
c1636c6836
1 changed files with 5 additions and 0 deletions
|
|
@ -54,3 +54,8 @@ class MCPServer(BaseModel):
|
|||
available_on_public_internet: bool = False
|
||||
updated_at: Optional[datetime] = None
|
||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
||||
|
||||
@property
|
||||
def has_client_credentials(self) -> bool:
|
||||
"""True if this server has OAuth2 client_credentials config (client_id, client_secret, token_url)."""
|
||||
return bool(self.client_id and self.client_secret and self.token_url)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue