forked from phoenix/litellm-mirror
ui - support all-models alias
This commit is contained in:
parent
73ef4780f7
commit
dfc020ca5f
3 changed files with 8 additions and 11 deletions
|
@ -147,10 +147,7 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
|
|||
mode="multiple"
|
||||
placeholder="Select models"
|
||||
style={{ width: "100%" }}
|
||||
>
|
||||
<Option key="all_models" value="all_models">
|
||||
All Models
|
||||
</Option>
|
||||
>
|
||||
{selectedTeam && selectedTeam.models ? (
|
||||
selectedTeam.models.map((model: string) => (
|
||||
<Option key={model} value={model}>
|
||||
|
@ -420,8 +417,8 @@ const handleEditSubmit = async (formValues: Record<string, any>) => {
|
|||
))
|
||||
) : (
|
||||
// If selected team is None or selected team's models are empty, show all models
|
||||
<Badge size={"xs"} className="mb-1" color="purple">
|
||||
<Text>All Models</Text>
|
||||
<Badge size={"xs"} className="mb-1" color="blue">
|
||||
<Text>all-models</Text>
|
||||
</Badge>
|
||||
)}
|
||||
</>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue