mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
fix(user_info_view.tsx): show all user personal models
This commit is contained in:
parent
44e459486c
commit
6896811cba
1 changed files with 31 additions and 0 deletions
|
@ -213,6 +213,19 @@ export default function UserInfoView({ userId, onClose, accessToken, userRole, o
|
|||
<Text>{userData.keys?.length || 0} keys</Text>
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
<Card>
|
||||
<Text>Personal Models</Text>
|
||||
<div className="mt-2">
|
||||
{userData.user_info?.models?.length && userData.user_info?.models?.length > 0 ? (
|
||||
userData.user_info?.models?.map((model, index) => (
|
||||
<Text key={index}>{model}</Text>
|
||||
))
|
||||
) : (
|
||||
<Text>All proxy models</Text>
|
||||
)}
|
||||
</div>
|
||||
</Card>
|
||||
</Grid>
|
||||
</TabPanel>
|
||||
|
||||
|
@ -262,6 +275,24 @@ export default function UserInfoView({ userId, onClose, accessToken, userRole, o
|
|||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<Text className="font-medium">Models</Text>
|
||||
<div className="flex flex-wrap gap-2 mt-1">
|
||||
{userData.user_info?.models?.length && userData.user_info?.models?.length > 0 ? (
|
||||
userData.user_info?.models?.map((model, index) => (
|
||||
<span
|
||||
key={index}
|
||||
className="px-2 py-1 bg-blue-100 rounded text-xs"
|
||||
>
|
||||
{model}
|
||||
</span>
|
||||
))
|
||||
) : (
|
||||
<Text>All proxy models</Text>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<Text className="font-medium">API Keys</Text>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue