@nuvin/nuvin-core 1.9.1 → 1.9.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/dist/VERSION +2 -2
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/VERSION
CHANGED
package/dist/index.js
CHANGED
|
@@ -99,6 +99,9 @@ var InMemoryMetricsPort = class {
|
|
|
99
99
|
this.snapshot.currentCompletionTokens = completion;
|
|
100
100
|
this.snapshot.currentCachedTokens = cached;
|
|
101
101
|
this.snapshot.currentCost = actualCost;
|
|
102
|
+
if (this.snapshot.contextWindowLimit && prompt > 0) {
|
|
103
|
+
this.snapshot.contextWindowUsage = prompt / this.snapshot.contextWindowLimit;
|
|
104
|
+
}
|
|
102
105
|
this.emit();
|
|
103
106
|
}
|
|
104
107
|
recordToolCall() {
|
|
@@ -1403,7 +1406,7 @@ var AgentOrchestrator = class {
|
|
|
1403
1406
|
toInvocations(toolCalls) {
|
|
1404
1407
|
return convertToolCalls(toolCalls, {
|
|
1405
1408
|
strict: this.cfg.strictToolValidation ?? false,
|
|
1406
|
-
throwOnError:
|
|
1409
|
+
throwOnError: false
|
|
1407
1410
|
});
|
|
1408
1411
|
}
|
|
1409
1412
|
};
|
|
@@ -5950,6 +5953,7 @@ function normalizeModelLimits(provider, model) {
|
|
|
5950
5953
|
}
|
|
5951
5954
|
var FALLBACK_LIMITS = {
|
|
5952
5955
|
zai: {
|
|
5956
|
+
"glm-4.7": { contextWindow: 2e5, maxOutput: 128e3 },
|
|
5953
5957
|
"glm-4.6": { contextWindow: 2e5, maxOutput: 128e3 }
|
|
5954
5958
|
},
|
|
5955
5959
|
openrouter: {
|