Skip to content

Commit 76abff7

Browse files
committed
minor fix
1 parent 8901092 commit 76abff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/ModelSelectionDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export const ModelSelectionButton: React.FC<{}> = ({ }) => {
192192
<TextField fullWidth size="small" type={showKeys ? "text" : "password"}
193193
InputProps={{ style: { fontSize: "0.875rem" } }}
194194
placeholder='leave blank if using keyless access'
195-
error={!(newEndpoint == "azure" || newEndpoint == "ollama") && !newApiKey}
195+
error={!(newEndpoint == "azure" || newEndpoint == "ollama" || newEndpoint == "") && !newApiKey}
196196
value={newApiKey} onChange={(event: any) => { setNewApiKey(event.target.value); }}
197197
autoComplete='off'
198198
/>

0 commit comments

Comments
 (0)