Skip to content
Snippets Groups Projects
Unverified Commit 13bb0601 authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

Fix GroqAI picker UI bug (#1993)

parent 296f0415
No related branches found
No related tags found
No related merge requests found
...@@ -89,13 +89,16 @@ function GroqAIModelSelection({ apiKey, settings }) { ...@@ -89,13 +89,16 @@ function GroqAIModelSelection({ apiKey, settings }) {
name="GroqModelPref" name="GroqModelPref"
required={true} required={true}
className="border-none bg-zinc-900 border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" 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 && ( {customModels.length > 0 && (
<optgroup label="Available models"> <optgroup label="Available models">
{customModels.map((model) => { {customModels.map((model) => {
return ( return (
<option key={model.id} value={model.id}> <option
key={model.id}
value={model.id}
selected={settings?.GroqModelPref === model.id}
>
{model.id} {model.id}
</option> </option>
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment