@fugood/buttress-server 2.26.0-beta.20 → 2.26.0-beta.22
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.
|
@@ -48,6 +48,13 @@ export declare function extractTokenCounts(eventData: Record<string, any>): {
|
|
|
48
48
|
cachedTokens: number;
|
|
49
49
|
completionTokens: number;
|
|
50
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* Whether generation stopped because it ran out of room: the max-token budget
|
|
53
|
+
* or a full context. llama.node reports the budget as `stopped_limit` from
|
|
54
|
+
* parallel completion (what ggml-llm uses) and `stopped_limited` from a single
|
|
55
|
+
* completion.
|
|
56
|
+
*/
|
|
57
|
+
export declare function stoppedAtLimit(eventData: Record<string, any>): boolean;
|
|
51
58
|
/**
|
|
52
59
|
* Extract token usage in OpenAI format from backend event data.
|
|
53
60
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/buttress-server",
|
|
3
|
-
"version": "2.26.0-beta.
|
|
3
|
+
"version": "2.26.0-beta.22",
|
|
4
4
|
"main": "lib/index.mjs",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@fugood/agent-tool-runtime": "^2.26.0-beta.19",
|
|
73
|
-
"@fugood/bricks-cli": "^2.26.0-beta.
|
|
73
|
+
"@fugood/bricks-cli": "^2.26.0-beta.22",
|
|
74
74
|
"@fugood/bricks-devtools-core": "^2.26.0-beta.18",
|
|
75
75
|
"@fugood/buttress-config": "^2.26.0-beta.20",
|
|
76
|
-
"@fugood/buttress-ui": "^2.26.0-beta.
|
|
76
|
+
"@fugood/buttress-ui": "^2.26.0-beta.21",
|
|
77
77
|
"tsdown": "^0.22.4",
|
|
78
78
|
"typescript": "^7.0.2"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "4fe5eeee44984d24a2d97ed0bfea2c0749cbc925"
|
|
81
81
|
}
|