mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix(ui): allow null for mcp_toolsets in the dashboard key response type
The generated schema declares object_permission.mcp_toolsets as string[] | null; the handwritten KeyResponse shape omitted the null. ObjectPermissionsView consumes the same value, so its prop type widens with it
This commit is contained in:
parent
a469bb7924
commit
dce1b0d1fd
2 changed files with 2 additions and 2 deletions
|
|
@ -94,7 +94,7 @@ export interface KeyResponse {
|
|||
object_permission_id: string;
|
||||
mcp_servers: string[];
|
||||
mcp_access_groups?: string[];
|
||||
mcp_toolsets?: string[];
|
||||
mcp_toolsets?: string[] | null;
|
||||
mcp_tool_permissions?: Record<string, string[]>;
|
||||
vector_stores: string[];
|
||||
agents?: string[];
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ interface ObjectPermission {
|
|||
mcp_servers: string[];
|
||||
mcp_access_groups?: string[];
|
||||
mcp_tool_permissions?: Record<string, string[]>;
|
||||
mcp_toolsets?: string[];
|
||||
mcp_toolsets?: string[] | null;
|
||||
vector_stores: string[];
|
||||
agents?: string[];
|
||||
agent_access_groups?: string[];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue