forked from phoenix/litellm-mirror
ui fix
This commit is contained in:
parent
afd81f1609
commit
b28109e891
1 changed files with 21 additions and 12 deletions
|
@ -152,18 +152,27 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
|
|||
All Team Models
|
||||
</Option>
|
||||
{selectedTeam && selectedTeam.models ? (
|
||||
selectedTeam.models.map((model: string) => (
|
||||
<Option key={model} value={model}>
|
||||
{model}
|
||||
</Option>
|
||||
))
|
||||
) : (
|
||||
userModels.map((model: string) => (
|
||||
<Option key={model} value={model}>
|
||||
{model}
|
||||
</Option>
|
||||
))
|
||||
)}
|
||||
selectedTeam.models.includes("all-proxy-models") ? (
|
||||
userModels.filter(model => model !== "all-proxy-models").map((model: string) => (
|
||||
<Option key={model} value={model}>
|
||||
{model}
|
||||
</Option>
|
||||
))
|
||||
) : (
|
||||
selectedTeam.models.map((model: string) => (
|
||||
<Option key={model} value={model}>
|
||||
{model}
|
||||
</Option>
|
||||
))
|
||||
)
|
||||
) : (
|
||||
userModels.map((model: string) => (
|
||||
<Option key={model} value={model}>
|
||||
{model}
|
||||
</Option>
|
||||
))
|
||||
)}
|
||||
|
||||
|
||||
|
||||
</Select>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue