dsh-model-usage 0.8.2 → 0.8.3
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/CHANGELOG.md +51 -45
- package/LICENSE +21 -21
- package/README.md +302 -295
- package/cordis.patch.yml +11 -11
- package/icon.svg +7 -7
- package/lib/client.js +1608 -1410
- package/lib/index.js +1083 -1083
- package/locale/en.json +6 -6
- package/locale/zh.json +6 -6
- package/package.json +84 -84
package/cordis.patch.yml
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# dsh-model-usage bundle patch: mounts the package's node half as a host entry.
|
|
2
|
-
# The node half hosts the loopback-only /model-usage Web routes that query the
|
|
3
|
-
# usage of the model the current conversation runs on (with that provider's own
|
|
4
|
-
# credential reference); the browser half (discovered by client-modules from
|
|
5
|
-
# this row's dsh.client declaration) renders the 用量 button and panel.
|
|
6
|
-
# No Config schema is declared, so an empty config keeps the row easy to extend
|
|
7
|
-
# from a user patch layer later.
|
|
8
|
-
- insert:
|
|
9
|
-
- id: model-usage
|
|
10
|
-
name: 'dsh-model-usage'
|
|
11
|
-
config: {}
|
|
1
|
+
# dsh-model-usage bundle patch: mounts the package's node half as a host entry.
|
|
2
|
+
# The node half hosts the loopback-only /model-usage Web routes that query the
|
|
3
|
+
# usage of the model the current conversation runs on (with that provider's own
|
|
4
|
+
# credential reference); the browser half (discovered by client-modules from
|
|
5
|
+
# this row's dsh.client declaration) renders the 用量 button and panel.
|
|
6
|
+
# No Config schema is declared, so an empty config keeps the row easy to extend
|
|
7
|
+
# from a user patch layer later.
|
|
8
|
+
- insert:
|
|
9
|
+
- id: model-usage
|
|
10
|
+
name: 'dsh-model-usage'
|
|
11
|
+
config: {}
|
package/icon.svg
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" role="img" aria-label="Usage">
|
|
2
|
-
<rect x="1" y="1" width="30" height="30" rx="8" fill="#1f6feb"/>
|
|
3
|
-
<path d="M7.5 21.5a8.5 8.5 0 0 1 17 0" fill="none" stroke="#ffffff" stroke-width="2.4" stroke-linecap="round"/>
|
|
4
|
-
<path d="M16 21.5 21.4 16.4" fill="none" stroke="#ffffff" stroke-width="2.4" stroke-linecap="round"/>
|
|
5
|
-
<circle cx="16" cy="21.5" r="2" fill="#ffffff"/>
|
|
6
|
-
<path d="M9.5 26h13" fill="none" stroke="#ffffff" stroke-width="2.2" stroke-linecap="round" opacity="0.7"/>
|
|
7
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" role="img" aria-label="Usage">
|
|
2
|
+
<rect x="1" y="1" width="30" height="30" rx="8" fill="#1f6feb"/>
|
|
3
|
+
<path d="M7.5 21.5a8.5 8.5 0 0 1 17 0" fill="none" stroke="#ffffff" stroke-width="2.4" stroke-linecap="round"/>
|
|
4
|
+
<path d="M16 21.5 21.4 16.4" fill="none" stroke="#ffffff" stroke-width="2.4" stroke-linecap="round"/>
|
|
5
|
+
<circle cx="16" cy="21.5" r="2" fill="#ffffff"/>
|
|
6
|
+
<path d="M9.5 26h13" fill="none" stroke="#ffffff" stroke-width="2.2" stroke-linecap="round" opacity="0.7"/>
|
|
7
|
+
</svg>
|