File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
webview-ui/src/components/settings/providers Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { useRouterModels } from "@src/components/ui/hooks/useRouterModels"
1111import { vscode } from "@src/utils/vscode"
1212
1313import { inputEventTransform } from "../transforms"
14- import { ApiKeyField } from "../common/ApiKeyField"
1514
1615type OllamaProps = {
1716 apiConfiguration : ProviderSettings
@@ -88,13 +87,17 @@ export const Ollama = ({ apiConfiguration, setApiConfigurationField }: OllamaPro
8887 < label className = "block font-medium mb-1" > { t ( "settings:providers.ollama.baseUrl" ) } </ label >
8988 </ VSCodeTextField >
9089 { apiConfiguration ?. ollamaBaseUrl && (
91- < ApiKeyField
92- initialValue = { apiConfiguration ?. ollamaApiKey || "" }
93- onChange = { ( value ) => setApiConfigurationField ( "ollamaApiKey" , value ) }
94- providerName = "Ollama"
95- placeholder = { t ( "settings:placeholders.apiKey.ollama" ) }
96- helpText = { t ( "settings:providers.ollama.apiKeyHelp" ) }
97- />
90+ < VSCodeTextField
91+ value = { apiConfiguration ?. ollamaApiKey || "" }
92+ type = "password"
93+ onInput = { handleInputChange ( "ollamaApiKey" ) }
94+ placeholder = { t ( "settings:placeholders.apiKey" ) }
95+ className = "w-full" >
96+ < label className = "block font-medium mb-1" > { t ( "settings:providers.ollama.apiKey" ) } </ label >
97+ < div className = "text-xs text-vscode-descriptionForeground mt-1" >
98+ { t ( "settings:providers.ollama.apiKeyHelp" ) }
99+ </ div >
100+ </ VSCodeTextField >
98101 ) }
99102 < VSCodeTextField
100103 value = { apiConfiguration ?. ollamaModelId || "" }
You can’t perform that action at this time.
0 commit comments