Skip to content

Commit bfc9fe1

Browse files
authored
refactor: Remove 'Included' billing message and simplify multiplier to 0. (#1611)
1 parent dfc8cee commit bfc9fe1

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/i18n/Messages.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ public final class Messages extends NLS {
177177
public static String chat_historyView_enterIcon_tooltip;
178178
public static String chat_historyView_editIcon_tooltip;
179179
public static String chat_historyView_deleteIcon_tooltip;
180-
public static String model_billing_included;
181180
public static String model_billing_multiplier_suffix;
182181
public static String model_billing_multiplier_variable;
183182
public static String model_tooltip_quota;

com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/i18n/messages.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ chat_historyView_textTruncation_ellipsis=...
134134
chat_historyView_enterIcon_tooltip=Apply title changes
135135
chat_historyView_editIcon_tooltip=Edit conversation title
136136
chat_historyView_deleteIcon_tooltip=Delete conversation
137-
model_billing_included=Included
138137
model_billing_multiplier_suffix=x
139138
model_billing_multiplier_variable=Variable
140139
chat_filePicker_title=Search attachments

com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/utils/ModelUtils.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,15 @@ public static CopilotModel convertByokModelToCopilotModel(ByokModel byokModel) {
5454
}
5555

5656
/**
57-
* Formats the billing multiplier for display. If the multiplier is 0, returns "Included". Otherwise, returns the
58-
* multiplier value with trailing zeros removed and an "x" suffix.
57+
* Formats the billing multiplier for display. Returns the multiplier value with trailing zeros removed and an "x"
58+
* suffix (e.g., "0x", "1x", "1.5x").
5959
*
6060
* @param multiplier the billing multiplier value
6161
* @return the formatted multiplier text
6262
*/
6363
public static String formatBillingMultiplier(double multiplier) {
6464
BigDecimal multiplierValue = BigDecimal.valueOf(multiplier).stripTrailingZeros();
65-
if (multiplierValue.toPlainString().equals("0")) {
66-
return Messages.model_billing_included;
67-
} else {
68-
return multiplierValue.toPlainString() + Messages.model_billing_multiplier_suffix;
69-
}
65+
return multiplierValue.toPlainString() + Messages.model_billing_multiplier_suffix;
7066
}
7167

7268
/**

0 commit comments

Comments
 (0)