pi-service-tier 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/package.json +1 -1
- package/service-tier.ts +3 -8
package/README.md
CHANGED
|
@@ -59,9 +59,8 @@ extension.
|
|
|
59
59
|
|
|
60
60
|
When [pi-fancy-footer](https://github.com/mavam/pi-fancy-footer) is installed,
|
|
61
61
|
the widget appears only when the active model uses a supported provider/API pair
|
|
62
|
-
and that provider has a configured tier.
|
|
63
|
-
|
|
64
|
-

|
|
62
|
+
and that provider has a configured tier. It shows a single `⚡` without the tier
|
|
63
|
+
name to keep the footer compact.
|
|
65
64
|
|
|
66
65
|
The widget id is `pi-service-tier.service-tier`. It uses the current
|
|
67
66
|
`pi-fancy-footer` extension widget API, with row `1`, order `8`, right
|
package/package.json
CHANGED
package/service-tier.ts
CHANGED
|
@@ -143,19 +143,14 @@ export default function (pi: ExtensionAPI) {
|
|
|
143
143
|
contributeFancyFooterWidget(pi, {
|
|
144
144
|
id: SERVICE_TIER_WIDGET_ID,
|
|
145
145
|
label: "Service tier",
|
|
146
|
-
description: "Shows
|
|
146
|
+
description: "Shows a bolt when a provider service tier is active.",
|
|
147
147
|
row: 1,
|
|
148
148
|
order: 8,
|
|
149
149
|
align: "right",
|
|
150
150
|
grow: false,
|
|
151
|
-
icon:
|
|
152
|
-
nerd: "",
|
|
153
|
-
emoji: "⚡",
|
|
154
|
-
unicode: "⚡",
|
|
155
|
-
ascii: "!",
|
|
156
|
-
},
|
|
151
|
+
icon: false,
|
|
157
152
|
visible: () => currentServiceTier !== "",
|
|
158
|
-
render: () => currentServiceTier
|
|
153
|
+
render: () => (currentServiceTier ? "⚡" : undefined),
|
|
159
154
|
});
|
|
160
155
|
|
|
161
156
|
pi.registerCommand("fast", {
|