feat: prototype of endpoint setting

This commit is contained in:
Wentao Lyu 2023-03-31 23:15:38 +08:00
parent b703d3706b
commit 462660d554
5 changed files with 64 additions and 11 deletions

View file

@ -18,7 +18,7 @@ export default function ModelItem({ endpoint, value, onSelect }) {
>
{icon}
{endpoint}
{endpoint in ['azureOpenAI', 'openAI'] && <sup>$</sup>}
{!!['azureOpenAI', 'openAI'].find(e => e === endpoint) && <sup>$</sup>}
</DropdownMenuRadioItem>
);
}