mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(feat) new ui build
This commit is contained in:
parent
6b08be4c8e
commit
0ac7512821
25 changed files with 29 additions and 29 deletions
|
@ -112,9 +112,9 @@ const ChatUI: React.FC<ChatUIProps> = ({
|
|||
console.log("model_info:", fetchedAvailableModels);
|
||||
|
||||
if (fetchedAvailableModels?.data.length > 0) {
|
||||
const options = fetchedAvailableModels["data"].map(item => ({
|
||||
value: item.id, // Replace 'value' with the actual property name you want to use as the value
|
||||
label: item.id // Replace 'label' with the actual property name you want to use as the label
|
||||
const options = fetchedAvailableModels["data"].map((item: { id: string }) => ({
|
||||
value: item.id,
|
||||
label: item.id
|
||||
}));
|
||||
|
||||
// Now, 'options' contains the list you wanted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue