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)