Update web-app/src/lib/completion.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
c63604ac55
commit
583a9bb7af
@ -182,7 +182,7 @@ export const sendCompletion = async (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!secretKey) {
|
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
|
const apiKey = provider.api_key
|
||||||
? decryptApiKey(provider.api_key, secretKey)
|
? decryptApiKey(provider.api_key, secretKey)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user