You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finally, update the DevoxxGenieToolWindowContent class to refresh the model providers when settings change:
publicclassDevoxxGenieToolWindowContentimplementsSettingsChangeListener,
LLMSettingsChangeListener,
ConversationStarter,
CustomPromptChangeListener {
// ... existing code ...@OverridepublicvoidsettingsChanged(booleanhasKey) {
// ... existing code ...refreshModelProviders();
}
privatevoidrefreshModelProviders() {
modelProviderComboBox.removeAllItems();
addModelProvidersToComboBox();
// Attempt to restore the previously selected provider if it's still availableModelProvidercurrentProvider = (ModelProvider) modelProviderComboBox.getSelectedItem();
if (currentProvider == null && modelProviderComboBox.getItemCount() > 0) {
modelProviderComboBox.setSelectedIndex(0);
}
updateModelNamesComboBox(currentProvider != null ? currentProvider.getName() : null);
}
// ... rest of the existing code ...
}
These changes will allow users to enable or disable local LLM providers through the settings UI. The enabled/disabled state will be persisted, and the combobox in the main UI will be updated accordingly. When a user changes these settings, the UI will refresh to show only the enabled providers.
Remember to update any other relevant parts of your code that might depend on the list of available providers, such as the ChatModelProvider class, to respect these new settings.
The text was updated successfully, but these errors were encountered:
Would be nice to disable certain local LLM providers, this way only the preferred one is shown by default.
We need to modify a few components of the plugin to make this happen
DevoxxGenieStateService
class to store the enabled/disabled state of local providers:LLMProvidersComponent
to include checkboxes for enabling/disabling local providers:LLMProvidersConfigurable
to apply and reset the local provider settings:LLMProviderService
to only return enabled local providers:DevoxxGenieToolWindowContent
class to refresh the model providers when settings change:These changes will allow users to enable or disable local LLM providers through the settings UI. The enabled/disabled state will be persisted, and the combobox in the main UI will be updated accordingly. When a user changes these settings, the UI will refresh to show only the enabled providers.
Remember to update any other relevant parts of your code that might depend on the list of available providers, such as the
ChatModelProvider
class, to respect these new settings.The text was updated successfully, but these errors were encountered: