ai-speedometer 2.1.0 → 2.1.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/dist/ai-speedometer +11 -4
- package/package.json +1 -1
package/dist/ai-speedometer
CHANGED
|
@@ -1431,7 +1431,7 @@ var getXDGPaths = () => ({
|
|
|
1431
1431
|
const errors = [];
|
|
1432
1432
|
const parsed = parse2(data, errors, { allowTrailingComma: true });
|
|
1433
1433
|
if (errors.length > 0) {
|
|
1434
|
-
console.warn("Warning: JSONC parsing errors in auth.json");
|
|
1434
|
+
console.warn("Warning: JSONC parsing errors in auth.json:", errors.map((e) => e.error).join(", "));
|
|
1435
1435
|
return parsed || {};
|
|
1436
1436
|
}
|
|
1437
1437
|
return parsed;
|
|
@@ -1475,7 +1475,9 @@ var getXDGPaths = () => ({
|
|
|
1475
1475
|
provider: { ...merged.provider ?? {}, ...parsed.provider ?? {} }
|
|
1476
1476
|
};
|
|
1477
1477
|
}
|
|
1478
|
-
} catch {
|
|
1478
|
+
} catch (error) {
|
|
1479
|
+
console.warn(`Warning: Could not read opencode config file ${filename}:`, error.message);
|
|
1480
|
+
}
|
|
1479
1481
|
}
|
|
1480
1482
|
return merged;
|
|
1481
1483
|
}, getOpencodeGlobalConfigProviders = async () => {
|
|
@@ -1938,7 +1940,8 @@ async function loadConfig(includeAll) {
|
|
|
1938
1940
|
try {
|
|
1939
1941
|
const providers = await getAllAvailableProviders(includeAll);
|
|
1940
1942
|
return { providers };
|
|
1941
|
-
} catch {
|
|
1943
|
+
} catch (error) {
|
|
1944
|
+
console.error("Error: Failed to load providers:", error.message);
|
|
1942
1945
|
return { providers: [] };
|
|
1943
1946
|
}
|
|
1944
1947
|
}
|
|
@@ -1981,6 +1984,8 @@ async function runHeadlessBenchmark(cliArgs) {
|
|
|
1981
1984
|
}
|
|
1982
1985
|
};
|
|
1983
1986
|
const result2 = await benchmarkSingleModelRest(modelConfig2);
|
|
1987
|
+
if (!result2.success && result2.error)
|
|
1988
|
+
console.error(`Error: Benchmark failed: ${result2.error}`);
|
|
1984
1989
|
console.log(buildJsonOutput(customProvider.name, customProvider.id, modelDef.name, modelDef.id, result2, cliArgs.formatted));
|
|
1985
1990
|
process.exit(result2.success ? 0 : 1);
|
|
1986
1991
|
}
|
|
@@ -2048,6 +2053,8 @@ async function runHeadlessBenchmark(cliArgs) {
|
|
|
2048
2053
|
}
|
|
2049
2054
|
};
|
|
2050
2055
|
const result = await benchmarkSingleModelRest(modelConfig);
|
|
2056
|
+
if (!result.success && result.error)
|
|
2057
|
+
console.error(`Error: Benchmark failed: ${result.error}`);
|
|
2051
2058
|
console.log(buildJsonOutput(provider.name, provider.id, model.name, model.id, result, cliArgs.formatted));
|
|
2052
2059
|
process.exit(result.success ? 0 : 1);
|
|
2053
2060
|
} catch (error) {
|
|
@@ -2154,7 +2161,7 @@ var package_default;
|
|
|
2154
2161
|
var init_package = __esm(() => {
|
|
2155
2162
|
package_default = {
|
|
2156
2163
|
name: "ai-speedometer",
|
|
2157
|
-
version: "2.1.
|
|
2164
|
+
version: "2.1.1",
|
|
2158
2165
|
description: "A comprehensive CLI tool for benchmarking AI models across multiple providers with parallel execution and professional metrics",
|
|
2159
2166
|
bin: {
|
|
2160
2167
|
"ai-speedometer": "dist/ai-speedometer",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-speedometer",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "A comprehensive CLI tool for benchmarking AI models across multiple providers with parallel execution and professional metrics",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ai-speedometer": "dist/ai-speedometer",
|