@hackerrank/astra-cli 0.1.16 → 0.1.18
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/package.json +1 -1
- package/src/model.js +3 -2
- package/src/report.html +4 -1
package/package.json
CHANGED
package/src/model.js
CHANGED
|
@@ -66,8 +66,9 @@ export class GatewayModel {
|
|
|
66
66
|
this.reportedCostUsd = 0;
|
|
67
67
|
this.estimatedCostUsd = 0;
|
|
68
68
|
this.costSource = null; // "reported" | "estimated" | "mixed" | null
|
|
69
|
-
//
|
|
70
|
-
|
|
69
|
+
// GPT-family gateway routes use the newer completion-token parameter.
|
|
70
|
+
// Other OpenAI-compatible providers continue using the legacy parameter.
|
|
71
|
+
this._tokenParam = /^gpt(?:-|$)/i.test(model) ? "max_completion_tokens" : "max_tokens";
|
|
71
72
|
// Optional AbortSignal; when set and aborted, in-flight requests are
|
|
72
73
|
// cancelled (used to force-quit a long model call on a second Ctrl+C).
|
|
73
74
|
this.signal = null;
|
package/src/report.html
CHANGED
|
@@ -333,7 +333,10 @@
|
|
|
333
333
|
"scim.errors-atomicity": "Errors & atomicity"
|
|
334
334
|
};
|
|
335
335
|
function groupTitle(parentId) {
|
|
336
|
-
|
|
336
|
+
if (GROUP_TITLES[parentId]) return GROUP_TITLES[parentId];
|
|
337
|
+
return String(parentId || "Other checks")
|
|
338
|
+
.replace(/[._-]+/g, " ")
|
|
339
|
+
.replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });
|
|
337
340
|
}
|
|
338
341
|
function draw() {
|
|
339
342
|
var groups = {};
|