rlm-cli 0.2.13 → 0.2.14
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/cli.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -108,14 +108,14 @@ async function fetchUrl(url) {
|
|
|
108
108
|
// ── Main ────────────────────────────────────────────────────────────────────
|
|
109
109
|
async function main() {
|
|
110
110
|
const args = parseArgs();
|
|
111
|
-
// Resolve model by scanning all providers
|
|
111
|
+
// Resolve model by scanning all providers (stop at first match)
|
|
112
112
|
let model;
|
|
113
113
|
const allModelIds = [];
|
|
114
114
|
for (const provider of getProviders()) {
|
|
115
115
|
const providerModels = getModels(provider);
|
|
116
116
|
for (const m of providerModels) {
|
|
117
117
|
allModelIds.push(m.id);
|
|
118
|
-
if (m.id === args.modelId) {
|
|
118
|
+
if (!model && m.id === args.modelId) {
|
|
119
119
|
model = m;
|
|
120
120
|
}
|
|
121
121
|
}
|