forked from phoenix/litellm-mirror
(ui) teams models
This commit is contained in:
parent
971ba05bc1
commit
f72cbdbffe
1 changed files with 10 additions and 4 deletions
|
@ -186,11 +186,17 @@ const Team: React.FC<TeamProps> = ({
|
|||
<TableCell style={{ maxWidth: "8-x", whiteSpace: "pre-wrap", overflow: "hidden" }}>
|
||||
{Array.isArray(team.models) ? (
|
||||
<div style={{ display: "flex", flexDirection: "column" }}>
|
||||
{team.models.map((model: string, index: number) => (
|
||||
<Badge key={index} size={"xs"} className="mb-1" color="blue">
|
||||
{model.length > 30 ? `${model.slice(0, 30)}...` : model}
|
||||
{team.models.length === 0 ? (
|
||||
<Badge size={"xs"} className="mb-1" color="purple">
|
||||
<Text>All Models</Text>
|
||||
</Badge>
|
||||
))}
|
||||
) : (
|
||||
team.models.map((model: string, index: number) => (
|
||||
<Badge key={index} size={"xs"} className="mb-1" color="blue">
|
||||
<Text>{model.length > 30 ? `${model.slice(0, 30)}...` : model}</Text>
|
||||
</Badge>
|
||||
))
|
||||
)}
|
||||
</div>
|
||||
) : null}
|
||||
</TableCell>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue