Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: display API key as sk-*** (#5142)

Liu Ji7a5517bf1cbf
diff --git a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
index 735ab779a2..ad4d8980b9 100644
--- a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
+++ b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
@@ -109,7 +109,7 @@ const state = reactive<LocalState>({
const openAIKeySetting = useSettingByName("bb.plugin.openai.key");
watchEffect(() => {
- state.openAIKey = openAIKeySetting.value?.value ?? "";
+ state.openAIKey = openAIKeySetting.value?.value ? "sk-******" : "";
});
const allowEdit = computed((): boolean => {