fix(ui): Ignore showing APIKEY for security

This commit is contained in:
wizardchen
2025-09-15 14:42:31 +08:00
committed by lyingbug
parent 092b30af3e
commit cd249df8c8
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -179,6 +179,10 @@ func (h *InitializationHandler) CheckStatus(c *gin.Context) {
})
return
}
// ignore api key in response for security
for _, model := range models {
model.Parameters.APIKey = ""
}
logger.Info(ctx, "System is already initialized")
c.JSON(http.StatusOK, gin.H{