Fix GroqAI picker UI bug ()

This commit is contained in:
Timothy Carambat 2024-07-29 11:16:00 -07:00 committed by GitHub
parent 296f041564
commit 13bb06013b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,13 +89,16 @@ function GroqAIModelSelection({ apiKey, settings }) {
name="GroqModelPref"
required={true}
className="border-none bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5"
defaultValue={settings?.GroqModelPref}
>
{customModels.length > 0 && (
<optgroup label="Available models">
{customModels.map((model) => {
return (
<option key={model.id} value={model.id}>
<option
key={model.id}
value={model.id}
selected={settings?.GroqModelPref === model.id}
>
{model.id}
</option>
);