@khanglvm/llm-router 1.3.0 → 1.3.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/CHANGELOG.md +8 -0
- package/README.md +1 -0
- package/package.json +2 -2
- package/src/cli/router-module.js +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.3.1] - 2026-03-05
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Upgraded `@levu/snap` dependency to `^0.3.13`:
|
|
12
|
+
- TUI `Esc` now defaults to stepping back to previous workflow step.
|
|
13
|
+
- On root step, `Esc` still exits.
|
|
14
|
+
- Added compliance warning in interactive provider setup: using provider resources through `llm-router` may violate provider terms; users are solely responsible for compliance.
|
|
15
|
+
|
|
8
16
|
## [1.3.0] - 2026-03-05
|
|
9
17
|
|
|
10
18
|
### Added
|
package/README.md
CHANGED
|
@@ -114,6 +114,7 @@ Notes:
|
|
|
114
114
|
- Default model lists are prefilled by subscription type, then editable.
|
|
115
115
|
- Device-code login is available for `chatgpt-codex` only.
|
|
116
116
|
- No provider API key or endpoint probe input is required for subscription mode.
|
|
117
|
+
- Compliance notice: provider account/resource usage via `llm-router` may violate a provider's terms. You are solely responsible for compliance; `llm-router` maintainers take no responsibility for misuse.
|
|
117
118
|
|
|
118
119
|
### 2) Configure Model Fallback (Optional)
|
|
119
120
|
Flow:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanglvm/llm-router",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Single gateway endpoint for multi-provider LLMs with unified OpenAI+Anthropic format and seamless fallback",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"llm-router",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test:provider-smoke": "node ./scripts/provider-smoke-suite.mjs"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@levu/snap": "^0.3.
|
|
33
|
+
"@levu/snap": "^0.3.13"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"wrangler": "^4.68.1"
|
package/src/cli/router-module.js
CHANGED
|
@@ -425,7 +425,13 @@ function findProviderByFriendlyName(providers, name, { excludeId = "" } = {}) {
|
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
function printProviderInputGuidance(context) {
|
|
428
|
-
|
|
428
|
+
const warn = typeof context?.terminal?.warn === "function" ? context.terminal.warn.bind(context.terminal) : null;
|
|
429
|
+
const line = typeof context?.terminal?.line === "function" ? context.terminal.line.bind(context.terminal) : null;
|
|
430
|
+
const output = warn || line;
|
|
431
|
+
output?.(
|
|
432
|
+
"Compliance notice: Using provider resources through llm-router may violate provider terms. " +
|
|
433
|
+
"You are solely responsible for compliance; llm-router maintainers take no responsibility for misuse."
|
|
434
|
+
);
|
|
429
435
|
}
|
|
430
436
|
|
|
431
437
|
function trimOuterPunctuation(value) {
|