Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 819c805

Browse files
committed
Refresh.
1 parent 92546b9 commit 819c805

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Settings/LLMSettings/LLMSelectOrButton.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,28 @@ const LLMSelectOrButton: React.FC<LLMSelectOrButtonProps> = ({
4949

5050
return (
5151
<div className="text-left">
52-
{llmConfigs.length === 0 ? (
53-
<div className="flex items-center">
52+
<div className="flex items-center">
53+
{llmConfigs.length === 0 ? (
5454
<Button className="bg-transparent text-primary hover:bg-slate-700" onClick={openLLMSettings}>
5555
Attach LLM
5656
</Button>
57-
<FiRefreshCw onClick={refreshLLMConfigs} className="cursor-pointer text-xs text-gray-400" />
58-
</div>
59-
) : (
60-
<Select value={selectedLLM} onValueChange={(value) => handleLLMChange(value)}>
61-
<SelectTrigger className="w-32 border border-solid border-muted-foreground">
62-
<SelectValue placeholder="Select LLM" />
63-
</SelectTrigger>
64-
<SelectContent>
65-
{llmConfigs.map((llm) => (
66-
<SelectItem key={llm.modelName} value={llm.modelName}>
67-
{llm.modelName}
68-
</SelectItem>
69-
))}
70-
</SelectContent>
71-
</Select>
72-
)}
73-
<SettingsModal isOpen={isSettingsModalOpen} onClose={closeModal} initialTab={activeTab} />
57+
) : (
58+
<Select value={selectedLLM} onValueChange={(value) => handleLLMChange(value)}>
59+
<SelectTrigger className="w-32 border border-solid border-muted-foreground">
60+
<SelectValue placeholder="Select LLM" />
61+
</SelectTrigger>
62+
<SelectContent>
63+
{llmConfigs.map((llm) => (
64+
<SelectItem key={llm.modelName} value={llm.modelName}>
65+
{llm.modelName}
66+
</SelectItem>
67+
))}
68+
</SelectContent>
69+
</Select>
70+
)}
71+
<FiRefreshCw onClick={refreshLLMConfigs} className="ml-1 cursor-pointer text-xs text-gray-400" />
72+
<SettingsModal isOpen={isSettingsModalOpen} onClose={closeModal} initialTab={activeTab} />
73+
</div>
7474
</div>
7575
)
7676
}

0 commit comments

Comments
 (0)