Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
interface KeyEditViewProps {
keyData: KeyResponse;
onCancel: () => void;
onSubmit: (values: any) => Promise<void>;

Check warning on line 34 in ui/litellm-dashboard/src/components/templates/key_edit_view.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
teams?: any[] | null;

Check warning on line 35 in ui/litellm-dashboard/src/components/templates/key_edit_view.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
accessToken: string | null;
userID: string | null;
userRole: string | null;
Expand All @@ -40,7 +40,7 @@
}

// Add this helper function
const getAvailableModelsForKey = (keyData: KeyResponse, teams: any[] | null): string[] => {

Check warning on line 43 in ui/litellm-dashboard/src/components/templates/key_edit_view.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
// If no teams data is available, return empty array
if (!teams || !keyData.team_id) {
return [];
Expand Down Expand Up @@ -78,7 +78,7 @@
return "default";
};

export function KeyEditView({

Check warning on line 81 in ui/litellm-dashboard/src/components/templates/key_edit_view.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Function 'KeyEditView' has a complexity of 63. Maximum allowed is 20
keyData,
onCancel,
onSubmit,
Expand Down Expand Up @@ -201,7 +201,7 @@
: "",
};

useEffect(() => {

Check warning on line 204 in ui/litellm-dashboard/src/components/templates/key_edit_view.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Arrow function has a complexity of 22. Maximum allowed is 20
form.setFieldsValue({
...keyData,
token: keyData.token || keyData.token_id,
Expand Down Expand Up @@ -256,7 +256,7 @@
fetchTags();
}, [accessToken]);

const handleSubmit = async (values: any) => {

Check warning on line 259 in ui/litellm-dashboard/src/components/templates/key_edit_view.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
try {
setIsKeySaving(true);

Expand Down Expand Up @@ -394,11 +394,11 @@
}
}}
>
<Select.Option value="default" label="Default">
<Select.Option value="default" label="Full Access">
<div style={{ padding: "4px 0" }}>
<div style={{ fontWeight: 500 }}>Default</div>
<div style={{ fontWeight: 500 }}>Full Access</div>
<div style={{ fontSize: "11px", color: "#6b7280", marginTop: "2px" }}>
Can call AI APIs + Management routes
Can call all routes (AI APIs, Management, and read-only)
</div>
</div>
</Select.Option>
Expand Down
Loading