mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 17:05:43 +00:00
(feat) ui - show users models when creating key
This commit is contained in:
@@ -47,6 +47,7 @@ const UserDashboard: React.FC<UserDashboardProps> = ({
|
||||
|
||||
const token = searchParams.get("token");
|
||||
const [accessToken, setAccessToken] = useState<string | null>(null);
|
||||
let userModels = ["gpt-4", "bedrock"];
|
||||
|
||||
function formatUserRole(userRole: string) {
|
||||
if (!userRole) {
|
||||
@@ -158,6 +159,7 @@ const UserDashboard: React.FC<UserDashboardProps> = ({
|
||||
<CreateKey
|
||||
userID={userID}
|
||||
userRole={userRole}
|
||||
userModels={userModels}
|
||||
accessToken={accessToken}
|
||||
data={data}
|
||||
setData={setData}
|
||||
|
||||
Reference in New Issue
Block a user