(feat) ui - show users models when creating key
This commit is contained in:
parent
f3b5a27c7a
commit
151f75b68f
@ -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…
Reference in New Issue
Block a user