diff --git a/extensions/void/src/common/sendLLMMessage.ts b/extensions/void/src/common/sendLLMMessage.ts index b5005de0..a0ab0df3 100644 --- a/extensions/void/src/common/sendLLMMessage.ts +++ b/extensions/void/src/common/sendLLMMessage.ts @@ -68,7 +68,7 @@ const sendAnthropicMsg: SendLLMMessageFnTypeInternal = ({ messages, onText, onFi stream.on('error', (error) => { // the most common error will be invalid API key (401), so we handle this with a nice message if (error instanceof Anthropic.APIError && error.status === 401) { - onError('Unauthorized: Invalid API key.') + onError('Invalid API key.') } else { onError(error.message) @@ -145,7 +145,7 @@ const sendOpenAIMsg: SendLLMMessageFnTypeInternal = ({ messages, onText, onFinal .catch(error => { if (error instanceof OpenAI.APIError) { if (error.status === 401) { - onError('Unauthorized: Invalid API key.'); + onError('Invalid API key.'); } else { onError(error.message);