feat: show icon within model select menu

fix: use icon for gptCustom
This commit is contained in:
Wentao Lyu 2023-03-15 14:21:08 +08:00
parent 54aa9debb4
commit 5d0b849930
7 changed files with 80 additions and 56 deletions

View file

@ -2,6 +2,7 @@ import React from 'react';
import ModelItem from './ModelItem';
export default function MenuItems({ models, onSelect }) {
console.log(models)
return (
<>
{models.map((modelItem) => (
@ -11,6 +12,8 @@ export default function MenuItems({ models, onSelect }) {
modelName={modelItem.name}
value={modelItem.value}
onSelect={onSelect}
chatGptLabel={modelItem.chatGptLabel}
promptPrefix={modelItem.promptPrefix}
/>
))}
</>