Skip to content
Snippets Groups Projects
Unverified Commit abc35fe8 authored by bryan's avatar bryan Committed by GitHub
Browse files

never show the ai section in AG (#49199)

- AG instances cannot connect to open ai
parent b465d938
No related branches found
No related tags found
No related merge requests found
...@@ -501,7 +501,9 @@ export const ADMIN_SETTINGS_SECTIONS = { ...@@ -501,7 +501,9 @@ export const ADMIN_SETTINGS_SECTIONS = {
}, },
llm: { llm: {
name: t`AI Features`, name: t`AI Features`,
getHidden: () => !PLUGIN_LLM_AUTODESCRIPTION.isEnabled(), getHidden: settings => {
!PLUGIN_LLM_AUTODESCRIPTION.isEnabled() && !settings["airgap-enabled"];
},
order: 131, order: 131,
settings: [ settings: [
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment