Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: Improve error message for invalid version/backend format (#6149)

Akarshan Biswas02ded9b5451f
diff --git a/extensions/llamacpp-extension/src/index.ts b/extensions/llamacpp-extension/src/index.ts
index 75afb81ae..4c6d4a45e 100644
--- a/extensions/llamacpp-extension/src/index.ts
+++ b/extensions/llamacpp-extension/src/index.ts
@@ -1165,7 +1165,7 @@ export default class llamacpp_extension extends AIEngine {
const [version, backend] = cfg.version_backend.split('/')
if (!version || !backend) {
throw new Error(
- `Invalid version/backend format: ${cfg.version_backend}. Expected format: <version>/<backend>`
+ "Initial setup for the backend failed due to a network issue. Please restart the app!"
)
}