mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-12 05:51:28 +00:00
You API integration (#203)
* Ability to configure custom service * Add example preset templates, rename module * Custom service client impl * Add YOU API integration * Remove/ignore generated antlr classes * Remove text completion models(deprecated) * Remove unused code, fix settings state sync * Display model name/icon in the tool window * Update chat history UI * Fix model/service sync * Clear plugin state * Fix minor bugs, add settings sync tests * UI changes * Separate model configuration * Add support for overriding the completion path * Update Find Bugs prompt
This commit is contained in:
parent
a860054360
commit
37af74ebdf
125 changed files with 1673 additions and 1537 deletions
|
|
@ -15,19 +15,13 @@ public class SettingsComponent {
|
|||
private final JPanel mainPanel;
|
||||
private final JBTextField displayNameField;
|
||||
private final ServiceSelectionForm serviceSelectionForm;
|
||||
private final ModelSelectionForm modelSelectionForm;
|
||||
private final UserDetailsSettingsPanel userDetailsSettingsPanel;
|
||||
|
||||
public SettingsComponent(Disposable parentDisposable, SettingsState settings) {
|
||||
modelSelectionForm = new ModelSelectionForm();
|
||||
serviceSelectionForm = new ServiceSelectionForm(settings);
|
||||
|
||||
displayNameField = new JBTextField(settings.getDisplayName(), 20);
|
||||
|
||||
userDetailsSettingsPanel = new UserDetailsSettingsPanel(parentDisposable, settings);
|
||||
|
||||
userDetailsSettingsPanel = new UserDetailsSettingsPanel(parentDisposable);
|
||||
mainPanel = FormBuilder.createFormBuilder()
|
||||
// .addComponent(userDetailsSettingsPanel)
|
||||
.addComponent(UI.PanelFactory.panel(displayNameField)
|
||||
.withLabel(CodeGPTBundle.get("settingsConfigurable.section.integration.displayNameFieldLabel"))
|
||||
.resizeX(false)
|
||||
|
|
@ -35,8 +29,6 @@ public class SettingsComponent {
|
|||
.addComponent(new TitledSeparator(CodeGPTBundle.get("settingsConfigurable.section.service.title")))
|
||||
.addComponent(serviceSelectionForm.getForm())
|
||||
.addVerticalGap(8)
|
||||
.addComponent(new TitledSeparator(CodeGPTBundle.get("settingsConfigurable.section.model.title")))
|
||||
.addComponent(modelSelectionForm.getForm())
|
||||
.addComponentFillVertically(new JPanel(), 0)
|
||||
.getPanel();
|
||||
}
|
||||
|
|
@ -65,10 +57,6 @@ public class SettingsComponent {
|
|||
return serviceSelectionForm;
|
||||
}
|
||||
|
||||
public ModelSelectionForm getModelSelectionForm() {
|
||||
return modelSelectionForm;
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return displayNameField.getText();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue