From 583a9bb7af7f23060477fe564d483ee22739d53a Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 8 Oct 2025 10:08:28 +0700 Subject: [PATCH] Update web-app/src/lib/completion.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- web-app/src/lib/completion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-app/src/lib/completion.ts b/web-app/src/lib/completion.ts index 1e8c08861..0850f5665 100644 --- a/web-app/src/lib/completion.ts +++ b/web-app/src/lib/completion.ts @@ -182,7 +182,7 @@ export const sendCompletion = async ( } } if (!secretKey) { - throw new Error('Encryption key unavailable: cannot encrypt API key.') + throw new Error('Encryption key unavailable: cannot decrypt API key.') } const apiKey = provider.api_key ? decryptApiKey(provider.api_key, secretKey)