We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8901092 commit 76abff7Copy full SHA for 76abff7
src/views/ModelSelectionDialog.tsx
@@ -192,7 +192,7 @@ export const ModelSelectionButton: React.FC<{}> = ({ }) => {
192
<TextField fullWidth size="small" type={showKeys ? "text" : "password"}
193
InputProps={{ style: { fontSize: "0.875rem" } }}
194
placeholder='leave blank if using keyless access'
195
- error={!(newEndpoint == "azure" || newEndpoint == "ollama") && !newApiKey}
+ error={!(newEndpoint == "azure" || newEndpoint == "ollama" || newEndpoint == "") && !newApiKey}
196
value={newApiKey} onChange={(event: any) => { setNewApiKey(event.target.value); }}
197
autoComplete='off'
198
/>
0 commit comments