Skip to content

Commit

Permalink
Fix GroqAI picker UI bug (#1993)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat authored Jul 29, 2024
1 parent 296f041 commit 13bb060
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/components/LLMSelection/GroqAiOptions/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand Down

0 comments on commit 13bb060

Please sign in to comment.