1
0
Fork 0
mirror of synced 2024-09-20 03:08:18 +12:00

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

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
}