Logo
Explore Help
Sign In
discourse/discourse-ai
1
0
Fork 0
You've already forked discourse-ai
mirror of https://github.com/discourse/discourse-ai.git synced 2025-07-09 15:43:28 +00:00
Code Issues Packages Projects Releases Wiki Activity
discourse-ai/assets/javascripts/initializers/ai-search-discoveries.js

16 lines
378 B
JavaScript
Raw Normal View History

FEATURE: Add ability to disable search discoveries (#1177) This update adds the ability to disable search discoveries. This can be done through a tooltip when search discoveries are shown. It can also be done in the AI user preferences, which has also been updated to accommodate more than just the one image caption setting.
2025-03-10 14:17:58 -07:00
import { apiInitializer } from "discourse/lib/api";
export default apiInitializer((api) => {
const currentUser = api.getCurrentUser();
const settings = api.container.lookup("service:site-settings");
if (
!settings.ai_bot_enabled ||
WIP: migrate persona to agent
2025-05-29 15:40:46 +10:00
!currentUser?.can_use_ai_bot_discover_agent
FEATURE: Add ability to disable search discoveries (#1177) This update adds the ability to disable search discoveries. This can be done through a tooltip when search discoveries are shown. It can also be done in the AI user preferences, which has also been updated to accommodate more than just the one image caption setting.
2025-03-10 14:17:58 -07:00
) {
return;
}
api.addSaveableUserOptionField("ai_search_discoveries");
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 57ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API