@quantish/agent 0.1.47 → 0.1.48
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/index.js +0 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2620,20 +2620,6 @@ function resolveModelId(nameOrAlias) {
|
|
|
2620
2620
|
return id;
|
|
2621
2621
|
}
|
|
2622
2622
|
}
|
|
2623
|
-
if (OPENROUTER_MODELS[lower]) {
|
|
2624
|
-
return lower;
|
|
2625
|
-
}
|
|
2626
|
-
if (OPENROUTER_MODEL_ALIASES[lower]) {
|
|
2627
|
-
return OPENROUTER_MODEL_ALIASES[lower];
|
|
2628
|
-
}
|
|
2629
|
-
for (const [id, config] of Object.entries(OPENROUTER_MODELS)) {
|
|
2630
|
-
if (config.name.toLowerCase() === lower) {
|
|
2631
|
-
return id;
|
|
2632
|
-
}
|
|
2633
|
-
}
|
|
2634
|
-
if (nameOrAlias.includes("/")) {
|
|
2635
|
-
return nameOrAlias;
|
|
2636
|
-
}
|
|
2637
2623
|
return null;
|
|
2638
2624
|
}
|
|
2639
2625
|
function getModelPricing(modelId) {
|
|
@@ -2763,16 +2749,6 @@ var OPENROUTER_MODELS = {
|
|
|
2763
2749
|
description: "Alibaba's coding specialist. Excellent for code generation."
|
|
2764
2750
|
}
|
|
2765
2751
|
};
|
|
2766
|
-
var OPENROUTER_MODEL_ALIASES = {
|
|
2767
|
-
"glm": "z-ai/glm-4.7",
|
|
2768
|
-
"glm-4.7": "z-ai/glm-4.7",
|
|
2769
|
-
"minimax": "minimax/minimax-m2.1",
|
|
2770
|
-
"deepseek": "deepseek/deepseek-chat",
|
|
2771
|
-
"gemini": "google/gemini-2.0-flash-001",
|
|
2772
|
-
"gemini-flash": "google/gemini-2.0-flash-001",
|
|
2773
|
-
"qwen": "qwen/qwen-2.5-coder-32b-instruct",
|
|
2774
|
-
"qwen-coder": "qwen/qwen-2.5-coder-32b-instruct"
|
|
2775
|
-
};
|
|
2776
2752
|
|
|
2777
2753
|
// src/agent/provider.ts
|
|
2778
2754
|
import Anthropic from "@anthropic-ai/sdk";
|