forked from phoenix/litellm-mirror
ui - sort the dropdown
This commit is contained in:
parent
e3229d0468
commit
e3ce97d33e
1 changed files with 3 additions and 7 deletions
|
@ -448,6 +448,9 @@ const handleEditSubmit = async (formValues: Record<string, any>) => {
|
|||
}
|
||||
console.log("all_model_groups:", all_model_groups)
|
||||
let _array_model_groups = Array.from(all_model_groups)
|
||||
// sort _array_model_groups alphabetically
|
||||
_array_model_groups = _array_model_groups.sort();
|
||||
|
||||
setAvailableModelGroups(_array_model_groups);
|
||||
|
||||
const modelMetricsResponse = await modelMetricsCall(
|
||||
|
@ -1090,14 +1093,7 @@ const handleEditSubmit = async (formValues: Record<string, any>) => {
|
|||
<p style={{fontSize: '0.85rem', color: '#808080'}}>View how requests were load balanced within a model group</p>
|
||||
<Select
|
||||
className="mb-4 mt-2"
|
||||
defaultValue="all"
|
||||
>
|
||||
<SelectItem
|
||||
value={"all"}
|
||||
onClick={() => updateModelMetrics(null)}
|
||||
>
|
||||
All Model Groups
|
||||
</SelectItem>
|
||||
{availableModelGroups.map((group, idx) => (
|
||||
<SelectItem
|
||||
key={idx}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue