@blockrun/clawrouter 0.8.21 → 0.8.23
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/README.md +6 -5
- package/dist/cli.js +4 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23,11 +23,12 @@ var MODEL_ALIASES = {
|
|
|
23
23
|
grok: "xai/grok-3",
|
|
24
24
|
"grok-fast": "xai/grok-4-fast-reasoning",
|
|
25
25
|
"grok-code": "xai/grok-code-fast-1",
|
|
26
|
-
// NVIDIA
|
|
26
|
+
// NVIDIA
|
|
27
27
|
nvidia: "nvidia/gpt-oss-120b",
|
|
28
28
|
"gpt-120b": "nvidia/gpt-oss-120b",
|
|
29
|
-
"gpt-20b": "nvidia/gpt-oss-20b"
|
|
30
|
-
|
|
29
|
+
"gpt-20b": "nvidia/gpt-oss-20b"
|
|
30
|
+
// Note: auto, free, eco, premium are virtual routing profiles registered in BLOCKRUN_MODELS
|
|
31
|
+
// They don't need aliases since they're already top-level model IDs
|
|
31
32
|
};
|
|
32
33
|
function resolveModelAlias(model) {
|
|
33
34
|
const normalized = model.trim().toLowerCase();
|
|
@@ -3919,17 +3920,25 @@ function injectModelsConfig(logger) {
|
|
|
3919
3920
|
}
|
|
3920
3921
|
const KEY_MODEL_ALIASES = [
|
|
3921
3922
|
{ id: "auto", alias: "auto" },
|
|
3923
|
+
{ id: "eco", alias: "eco" },
|
|
3924
|
+
{ id: "premium", alias: "premium" },
|
|
3922
3925
|
{ id: "free", alias: "free" },
|
|
3923
3926
|
{ id: "sonnet", alias: "sonnet" },
|
|
3924
3927
|
{ id: "opus", alias: "opus" },
|
|
3925
3928
|
{ id: "haiku", alias: "haiku" },
|
|
3929
|
+
{ id: "gpt", alias: "gpt" },
|
|
3930
|
+
{ id: "gpt5", alias: "gpt5" },
|
|
3931
|
+
{ id: "mini", alias: "mini" },
|
|
3932
|
+
{ id: "o3", alias: "o3" },
|
|
3926
3933
|
{ id: "grok", alias: "grok" },
|
|
3934
|
+
{ id: "grok-fast", alias: "grok-fast" },
|
|
3935
|
+
{ id: "grok-code", alias: "grok-code" },
|
|
3927
3936
|
{ id: "deepseek", alias: "deepseek" },
|
|
3937
|
+
{ id: "reasoner", alias: "reasoner" },
|
|
3928
3938
|
{ id: "kimi", alias: "kimi" },
|
|
3929
3939
|
{ id: "gemini", alias: "gemini" },
|
|
3930
3940
|
{ id: "flash", alias: "flash" },
|
|
3931
|
-
{ id: "
|
|
3932
|
-
{ id: "reasoner", alias: "reasoner" }
|
|
3941
|
+
{ id: "nvidia", alias: "nvidia" }
|
|
3933
3942
|
];
|
|
3934
3943
|
if (!defaults.models) {
|
|
3935
3944
|
defaults.models = {};
|