Skip to content

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

fix: always allow to unset the OpenAI settings (#8580)

Tianzhou (天舟)aa7ad0ece38c
diff --git a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
index 6e33e824e4..dfc06a4dd5 100644
--- a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
+++ b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue
@@ -175,7 +175,9 @@ const handleOpenAIEndpointChange = (event: InputEvent) => {
};
const updateOpenAIKeyEndpoint = async () => {
- if (!hasFeature("bb.feature.plugin.openai")) {
+ // Always allow to unset the key.
+ const isUnset = state.openAIKey === "" && state.openAIEndpoint === "";
+ if (!isUnset && !hasFeature("bb.feature.plugin.openai")) {
state.showFeatureModal = true;
return;
}