From 3fd4d2336b816930e2f7697f93c0d75ef366cb2b Mon Sep 17 00:00:00 2001 From: Nestor Qin Date: Wed, 22 May 2024 19:33:06 -0400 Subject: [PATCH] [Message] Refine no WebGPU error message --- src/engine.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine.ts b/src/engine.ts index b9dc8c90..3c76a721 100644 --- a/src/engine.ts +++ b/src/engine.ts @@ -38,7 +38,10 @@ import { } from "./conversation"; const ERROR_WEBGPU_NOT_AVAILABLE = new Error( - "WebGPU is not available in your current environment. WebGPU is required for running WebLLM. Please ensure your browser supports WebGPU, and that it is enabled in your browser settings. You can check your browser's WebGPU support using https://webgpureport.org/ .", + "WebGPU is not supported in your current environment, but it is necessary to run the WebLLM engine. " + + "Please make sure that your browser supports WebGPU and that it is enabled in your browser settings. " + + "You can also consult your browser's compatibility chart to see if it supports WebGPU. " + + "For more information about WebGPU support in your browser, visit https://webgpureport.org/", ); /**