forked from phoenix/litellm-mirror
(ui) show team models on ui
This commit is contained in:
parent
69ae445e65
commit
9dde7abf4c
1 changed files with 16 additions and 5 deletions
|
@ -148,11 +148,22 @@ const CreateKey: React.FC<CreateKeyProps> = ({
|
||||||
placeholder="Select models"
|
placeholder="Select models"
|
||||||
style={{ width: "100%" }}
|
style={{ width: "100%" }}
|
||||||
>
|
>
|
||||||
{userModels.map((model) => (
|
|
||||||
<Option key={model} value={model}>
|
{team && team.models ? (
|
||||||
{model}
|
team.models.map((model: string) => (
|
||||||
</Option>
|
<Option key={model} value={model}>
|
||||||
))}
|
{model}
|
||||||
|
</Option>
|
||||||
|
))
|
||||||
|
) : (
|
||||||
|
userModels.map((model: string) => (
|
||||||
|
<Option key={model} value={model}>
|
||||||
|
{model}
|
||||||
|
</Option>
|
||||||
|
))
|
||||||
|
)}
|
||||||
|
|
||||||
|
|
||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue