(feat) new ui build

This commit is contained in:
Ishaan Jaff 2024-03-29 15:16:59 -07:00
parent 6b08be4c8e
commit 0ac7512821
25 changed files with 29 additions and 29 deletions

View file

@ -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