github-router 0.3.43 → 0.3.44
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/main.js +24 -20
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -11714,7 +11714,7 @@ function initProxyFromEnv() {
|
|
|
11714
11714
|
//#endregion
|
|
11715
11715
|
//#region package.json
|
|
11716
11716
|
var name = "github-router";
|
|
11717
|
-
var version = "0.3.
|
|
11717
|
+
var version = "0.3.44";
|
|
11718
11718
|
|
|
11719
11719
|
//#endregion
|
|
11720
11720
|
//#region src/lib/approval.ts
|
|
@@ -14028,28 +14028,32 @@ function formatModel(model) {
|
|
|
14028
14028
|
lines.push(` ${meta.join(" · ")}`);
|
|
14029
14029
|
const limits = model.capabilities.limits;
|
|
14030
14030
|
const limitParts = [];
|
|
14031
|
-
if (limits
|
|
14032
|
-
|
|
14033
|
-
|
|
14034
|
-
|
|
14035
|
-
|
|
14036
|
-
|
|
14031
|
+
if (limits) {
|
|
14032
|
+
if (limits.max_context_window_tokens) limitParts.push(`ctx ${formatTokens(limits.max_context_window_tokens)}`);
|
|
14033
|
+
else if (limits.max_prompt_tokens) limitParts.push(`prompt ${formatTokens(limits.max_prompt_tokens)}`);
|
|
14034
|
+
if (limits.max_output_tokens) limitParts.push(`out ${formatTokens(limits.max_output_tokens)}`);
|
|
14035
|
+
if (limits.max_non_streaming_output_tokens && limits.max_non_streaming_output_tokens !== limits.max_output_tokens) limitParts.push(`out-non-stream ${formatTokens(limits.max_non_streaming_output_tokens)}`);
|
|
14036
|
+
if (limits.max_inputs) limitParts.push(`inputs ${limits.max_inputs}`);
|
|
14037
|
+
if (limits.vision?.max_prompt_images) limitParts.push(`images ${limits.vision.max_prompt_images}`);
|
|
14038
|
+
}
|
|
14037
14039
|
if (limitParts.length > 0) lines.push(` limits: ${limitParts.join(" · ")}`);
|
|
14038
14040
|
const supports = model.capabilities.supports;
|
|
14039
14041
|
const supportFlags = [];
|
|
14040
|
-
if (supports
|
|
14041
|
-
|
|
14042
|
-
|
|
14043
|
-
|
|
14044
|
-
|
|
14045
|
-
|
|
14046
|
-
|
|
14047
|
-
|
|
14048
|
-
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
|
|
14052
|
-
|
|
14042
|
+
if (supports) {
|
|
14043
|
+
if (supports.tool_calls) supportFlags.push("tools");
|
|
14044
|
+
if (supports.parallel_tool_calls) supportFlags.push("parallel-tools");
|
|
14045
|
+
if (supports.streaming) supportFlags.push("streaming");
|
|
14046
|
+
if (supports.vision) supportFlags.push("vision");
|
|
14047
|
+
if (supports.structured_outputs) supportFlags.push("structured-outputs");
|
|
14048
|
+
if (supports.dimensions) supportFlags.push("dimensions");
|
|
14049
|
+
if (supports.adaptive_thinking) {
|
|
14050
|
+
const min = supports.min_thinking_budget;
|
|
14051
|
+
const max = supports.max_thinking_budget;
|
|
14052
|
+
const range = min !== void 0 && max !== void 0 ? `(${formatTokens(min)}-${formatTokens(max)})` : "";
|
|
14053
|
+
supportFlags.push(`adaptive-thinking${range}`);
|
|
14054
|
+
}
|
|
14055
|
+
if (supports.reasoning_effort && supports.reasoning_effort.length > 0) supportFlags.push(`reasoning:${supports.reasoning_effort.join("/")}`);
|
|
14056
|
+
}
|
|
14053
14057
|
if (supportFlags.length > 0) lines.push(` supports: ${supportFlags.join(", ")}`);
|
|
14054
14058
|
if (model.supported_endpoints && model.supported_endpoints.length > 0) lines.push(` endpoints: ${model.supported_endpoints.join(", ")}`);
|
|
14055
14059
|
if (model.billing) {
|