Update packages/worker/src/api/controllers/global/configs.ts
Co-authored-by: Sam Rose <hello@samwho.dev>
This commit is contained in:
parent
8b26ab422f
commit
7a376d9629
|
@ -335,7 +335,7 @@ function enrichOIDCLogos(oidcLogos: OIDCLogosConfig) {
|
||||||
|
|
||||||
async function enrichAIConfig(aiConfig: AIConfig) {
|
async function enrichAIConfig(aiConfig: AIConfig) {
|
||||||
// Strip out the API Keys from the response so they don't show in the UI
|
// 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) {
|
if (aiConfig.config[key].apiKey) {
|
||||||
aiConfig.config[key].apiKey = PASSWORD_REPLACEMENT
|
aiConfig.config[key].apiKey = PASSWORD_REPLACEMENT
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue