LibreChat/client/src/components/Models/MenuItems.jsx

22 lines
540 B
React
Raw Normal View History

import React from 'react';
import ModelItem from './ModelItem';
export default function MenuItems({ models, onSelect }) {
return (
<>
2023-03-12 16:45:44 -04:00
{models.map((modelItem) => (
<ModelItem
2023-03-12 16:45:44 -04:00
key={modelItem._id}
id={modelItem._id}
modelName={modelItem.name}
value={modelItem.value}
model={modelItem.model || 'chatgptCustom'}
onSelect={onSelect}
chatGptLabel={modelItem.chatGptLabel}
promptPrefix={modelItem.promptPrefix}
/>
))}
</>
);
}