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
|
All Team Models
|
||||||
</Option>
|
</Option>
|
||||||
{selectedTeam && selectedTeam.models ? (
|
{selectedTeam && selectedTeam.models ? (
|
||||||
selectedTeam.models.map((model: string) => (
|
selectedTeam.models.includes("all-proxy-models") ? (
|
||||||
<Option key={model} value={model}>
|
userModels.filter(model => model !== "all-proxy-models").map((model: string) => (
|
||||||
{model}
|
<Option key={model} value={model}>
|
||||||
</Option>
|
{model}
|
||||||
))
|
</Option>
|
||||||
) : (
|
))
|
||||||
userModels.map((model: string) => (
|
) : (
|
||||||
<Option key={model} value={model}>
|
selectedTeam.models.map((model: string) => (
|
||||||
{model}
|
<Option key={model} value={model}>
|
||||||
</Option>
|
{model}
|
||||||
))
|
</Option>
|
||||||
)}
|
))
|
||||||
|
)
|
||||||
|
) : (
|
||||||
|
userModels.map((model: string) => (
|
||||||
|
<Option key={model} value={model}>
|
||||||
|
{model}
|
||||||
|
</Option>
|
||||||
|
))
|
||||||
|
)}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</Select>
|
</Select>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue