LlamaFinetuneGGUF commited on
Commit
38c0699
·
1 Parent(s): 49ce423

moved local models to the experimental features

Browse files
app/components/settings/SettingsWindow.tsx CHANGED
@@ -30,6 +30,7 @@ export const SettingsWindow = ({ open, onClose }: SettingsProps) => {
30
  const [searchTerm, setSearchTerm] = useState('');
31
  const [isDeleting, setIsDeleting] = useState(false);
32
  const [isJustSayEnabled, setIsJustSayEnabled] = useState(false);
 
33
  const [isExperimentalFeature1Enabled, setIsExperimentalFeature1Enabled] = useState(false);
34
  const [isExperimentalFeature2Enabled, setIsExperimentalFeature2Enabled] = useState(false);
35
 
@@ -115,6 +116,10 @@ export const SettingsWindow = ({ open, onClose }: SettingsProps) => {
115
  };
116
 
117
  const filteredProviders = providers
 
 
 
 
118
  .filter((provider) => provider.name.toLowerCase().includes(searchTerm.toLowerCase()))
119
  .sort((a, b) => a.name.localeCompare(b.name));
120
 
@@ -359,11 +364,11 @@ export const SettingsWindow = ({ open, onClose }: SettingsProps) => {
359
  Disclaimer: Experimental features may be unstable and are subject to change.
360
  </p>
361
  <div className="flex items-center justify-between mb-2">
362
- <span className="text-bolt-elements-textPrimary">Replace with local models</span>
363
  <Switch
364
  className="ml-auto"
365
- checked={isJustSayEnabled}
366
- onCheckedChange={() => setIsJustSayEnabled(!isJustSayEnabled)}
367
  />
368
  </div>
369
  </div>
 
30
  const [searchTerm, setSearchTerm] = useState('');
31
  const [isDeleting, setIsDeleting] = useState(false);
32
  const [isJustSayEnabled, setIsJustSayEnabled] = useState(false);
33
+ const [isLocalModelsEnabled, setIsLocalModelsEnabled] = useState(false);
34
  const [isExperimentalFeature1Enabled, setIsExperimentalFeature1Enabled] = useState(false);
35
  const [isExperimentalFeature2Enabled, setIsExperimentalFeature2Enabled] = useState(false);
36
 
 
116
  };
117
 
118
  const filteredProviders = providers
119
+ .filter((provider) => {
120
+ const isLocalModelProvider = ['OpenAILike', 'LMStudio', 'Ollama'].includes(provider.name);
121
+ return isLocalModelsEnabled || !isLocalModelProvider;
122
+ })
123
  .filter((provider) => provider.name.toLowerCase().includes(searchTerm.toLowerCase()))
124
  .sort((a, b) => a.name.localeCompare(b.name));
125
 
 
364
  Disclaimer: Experimental features may be unstable and are subject to change.
365
  </p>
366
  <div className="flex items-center justify-between mb-2">
367
+ <span className="text-bolt-elements-textPrimary">Enable Local Models</span>
368
  <Switch
369
  className="ml-auto"
370
+ checked={isLocalModelsEnabled}
371
+ onCheckedChange={() => setIsLocalModelsEnabled(!isLocalModelsEnabled)}
372
  />
373
  </div>
374
  </div>