@sisu-ai/mw-usage-tracker 1.0.0 → 1.0.1
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 +8 -0
- package/package.json +11 -2
package/README.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Track token usage across your pipeline and estimate cost.
|
|
4
4
|
|
|
5
|
+
## Setup
|
|
6
|
+
```bash
|
|
7
|
+
npm i @sisu-ai/mw-usage-tracker
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Documentation
|
|
11
|
+
Discover what you can do through examples or documentation. Check it out at https://github.com/finger-gun/sisu
|
|
12
|
+
|
|
5
13
|
## Usage
|
|
6
14
|
```ts
|
|
7
15
|
import { usageTracker } from '@sisu-ai/mw-usage-tracker';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sisu-ai/mw-usage-tracker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,6 +14,15 @@
|
|
|
14
14
|
"build": "tsc -b"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@sisu-ai/core": "0.2.
|
|
17
|
+
"@sisu-ai/core": "0.2.1"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/finger-gun/sisu",
|
|
22
|
+
"directory": "packages/middleware/usage-tracker"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/finger-gun/sisu#readme",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/finger-gun/sisu/issues"
|
|
18
27
|
}
|
|
19
28
|
}
|