Update packages/worker/src/api/controllers/global/configs.ts

Co-authored-by: Sam Rose <hello@samwho.dev>
This commit is contained in:
Martin McKeaveney 2024-09-10 10:26:18 +01:00 committed by GitHub
parent 8b26ab422f
commit 7a376d9629
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ function enrichOIDCLogos(oidcLogos: OIDCLogosConfig) {
async function enrichAIConfig(aiConfig: AIConfig) {
// Strip out the API Keys from the response so they don't show in the UI
for (let key in aiConfig.config) {
for (const key in aiConfig.config) {
if (aiConfig.config[key].apiKey) {
aiConfig.config[key].apiKey = PASSWORD_REPLACEMENT
}