mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
(feat) ui - show users models when creating key
This commit is contained in:
parent
f3b5a27c7a
commit
151f75b68f
1 changed files with 2 additions and 0 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue