mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix(cli): format auth.py, update polling call assertions, regenerate openapi snapshot and schema.d.ts
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
a758d6b2d3
commit
e32b3f2d76
4 changed files with 37 additions and 2 deletions
|
|
@ -19946,6 +19946,22 @@
|
|||
],
|
||||
"title": "Resource"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "team",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Team"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
|
@ -20636,6 +20652,22 @@
|
|||
],
|
||||
"title": "Resource"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "team",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Team"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
|
|
|||
|
|
@ -621,8 +621,7 @@ def match_requested_team(teams: Sequence[CliTeam], requested_team: str | None) -
|
|||
(
|
||||
team_id
|
||||
for team in teams
|
||||
if (team_id := team.get("team_id")) is not None
|
||||
and requested_team in (team_id, team.get("team_alias"))
|
||||
if (team_id := team.get("team_id")) is not None and requested_team in (team_id, team.get("team_alias"))
|
||||
),
|
||||
None,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -276,6 +276,7 @@ async def test_poll_for_authentication_team_selection_success(
|
|||
{"team_id": "1", "team_alias": None},
|
||||
{"team_id": "2", "team_alias": None},
|
||||
],
|
||||
requested_team=None,
|
||||
)
|
||||
click_mock.assert_not_called()
|
||||
|
||||
|
|
@ -310,6 +311,7 @@ async def test_poll_for_authentication_team_selection_cancelled(
|
|||
key_id="key-123",
|
||||
poll_secret="poll-secret",
|
||||
teams=[{"team_id": "team-1", "team_alias": None}],
|
||||
requested_team=None,
|
||||
)
|
||||
click_mock.assert_called_once()
|
||||
assert "Team selection cancelled" in click_mock.call_args[0][0]
|
||||
|
|
|
|||
2
ui/litellm-dashboard/src/lib/http/schema.d.ts
generated
vendored
2
ui/litellm-dashboard/src/lib/http/schema.d.ts
generated
vendored
|
|
@ -41572,6 +41572,7 @@ export interface operations {
|
|||
response_type?: string | null;
|
||||
scope?: string | null;
|
||||
resource?: string | null;
|
||||
team?: string | null;
|
||||
};
|
||||
header?: never;
|
||||
path?: never;
|
||||
|
|
@ -68967,6 +68968,7 @@ export interface operations {
|
|||
response_type?: string | null;
|
||||
scope?: string | null;
|
||||
resource?: string | null;
|
||||
team?: string | null;
|
||||
};
|
||||
header?: never;
|
||||
path: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue