Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.devoxx.genie.ui.settings.costsettings;

import com.devoxx.genie.service.models.LLMModelRegistryService;
import com.devoxx.genie.service.models.ModelConfigService;
import com.devoxx.genie.ui.settings.AbstractSettingsComponent;
import com.intellij.ui.components.JBScrollPane;
import com.intellij.ui.table.JBTable;
Expand Down Expand Up @@ -78,6 +79,9 @@ public LanguageModelCostSettingsComponent() {
setCustomRenderers();
loadCurrentCosts();

// Trigger a remote config refresh so newly added models in models.json appear
ModelConfigService.getInstance().forceRefresh(this::loadCurrentCosts);

JPanel optionsPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
optionsPanel.add(showCalcTokensButtonCheckBox);
optionsPanel.add(showAddFileButtonCheckBox);
Expand Down Expand Up @@ -143,9 +147,7 @@ public Class<?> getColumnClass(int column) {

@Override
public boolean isCellEditable(int row, int column) {
return column == ColumnName.INPUT_COST.ordinal() ||
column == ColumnName.OUTPUT_COST.ordinal() ||
column == ColumnName.CONTEXT_WINDOW.ordinal();
return false;
}
}
}
Loading