pi-service-tier 0.1.1 → 0.1.2
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 +3 -1
- package/package.json +1 -1
- package/service-tier.ts +5 -7
package/README.md
CHANGED
|
@@ -66,7 +66,9 @@ When [pi-fancy-footer](https://github.com/mavam/pi-fancy-footer) is installed,
|
|
|
66
66
|
the widget appears only when the active model uses a supported provider/API pair
|
|
67
67
|
and that provider has a configured tier.
|
|
68
68
|
|
|
69
|
-
The widget id is `pi-service-tier.service-tier`.
|
|
69
|
+
The widget id is `pi-service-tier.service-tier`. It uses the current
|
|
70
|
+
`pi-fancy-footer` extension widget API, with row `1`, order `8`, right
|
|
71
|
+
alignment, and no grow behavior by default.
|
|
70
72
|
|
|
71
73
|
## 📝 TODO
|
|
72
74
|
|
package/package.json
CHANGED
package/service-tier.ts
CHANGED
|
@@ -144,12 +144,10 @@ export default function (pi: ExtensionAPI) {
|
|
|
144
144
|
id: SERVICE_TIER_WIDGET_ID,
|
|
145
145
|
label: "Service tier",
|
|
146
146
|
description: "Shows the configured provider service tier when active.",
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
fill: "none",
|
|
152
|
-
},
|
|
147
|
+
row: 1,
|
|
148
|
+
order: 8,
|
|
149
|
+
align: "right",
|
|
150
|
+
grow: false,
|
|
153
151
|
icon: {
|
|
154
152
|
nerd: "",
|
|
155
153
|
emoji: "⚡",
|
|
@@ -157,7 +155,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
157
155
|
ascii: "!",
|
|
158
156
|
},
|
|
159
157
|
visible: () => currentServiceTier !== "",
|
|
160
|
-
|
|
158
|
+
render: () => currentServiceTier || undefined,
|
|
161
159
|
});
|
|
162
160
|
|
|
163
161
|
pi.registerCommand("fast", {
|