@autoglm.js/cli 0.0.3 → 0.0.4
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.mjs +2 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2667,9 +2667,7 @@ async function ensureConfigFileExists(configPath, defaultConfig) {
|
|
|
2667
2667
|
}
|
|
2668
2668
|
async function checkModelApi(agent, navigate) {
|
|
2669
2669
|
try {
|
|
2670
|
-
|
|
2671
|
-
console.log(result);
|
|
2672
|
-
if (result.success) return true;
|
|
2670
|
+
if ((await agent.checkModelApi()).success) return true;
|
|
2673
2671
|
navigate("/help", { state: { code: ErrorCode.MODEL_API_CHECK_FAILED } });
|
|
2674
2672
|
await sleep(1e3);
|
|
2675
2673
|
process$1.exit(0);
|
|
@@ -3246,7 +3244,7 @@ var App_default = App;
|
|
|
3246
3244
|
|
|
3247
3245
|
//#endregion
|
|
3248
3246
|
//#region package.json
|
|
3249
|
-
var version$1 = "0.0.
|
|
3247
|
+
var version$1 = "0.0.4";
|
|
3250
3248
|
|
|
3251
3249
|
//#endregion
|
|
3252
3250
|
//#region src/pages/Version.tsx
|