update for custom model, ollama

This commit is contained in:
duanfuxiang
2025-03-20 12:44:53 +08:00
parent 76ecca0da9
commit 570e8d9564
9 changed files with 155 additions and 115 deletions

View File

@@ -141,13 +141,15 @@ const CustomProviderSettings: React.FC<CustomProviderSettingsProps> = ({ plugin,
onChange={updateProvider}
/>
<div className="infio-llm-setting-divider"></div>
<TextComponent
name={currProvider + " api key:"}
placeholder="Enter your api key"
value={providerSetting.apiKey || ''}
onChange={updateProviderApiKey}
type="password"
/>
{currProvider !== ApiProvider.Ollama && (
<TextComponent
name={currProvider + " api key:"}
placeholder="Enter your api key"
value={providerSetting.apiKey || ''}
onChange={updateProviderApiKey}
type="password"
/>
)}
<div className="infio-llm-setting-divider"></div>
<ToggleComponent
name="Use custom base url"