This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +38
-15
lines changed
assets/javascripts/discourse
connectors/topic-list-before-category Expand file tree Collapse file tree 4 files changed +38
-15
lines changed Original file line number Diff line number Diff line change 1+ import Component from " @glimmer/component" ;
2+ import { service } from " @ember/service" ;
3+
4+ export default class AiTopicGist extends Component {
5+ @service router;
6+
7+ get showGist () {
8+ return (
9+ this .router .currentRoute .attributes ? .filterType === " hot" &&
10+ this .args .topic ? .ai_topic_gist &&
11+ ! this .args .topic ? .excerpt
12+ );
13+ }
14+
15+ <template >
16+ {{#if this . showGist }}
17+ <div class =" ai-topic-gist" >
18+ <div class =" ai-topic-gist__text" >
19+ {{@ topic.ai_topic_gist }}
20+ </div >
21+ </div >
22+ {{/if }}
23+ </template >
24+ }
Original file line number Diff line number Diff line change 1+ import Component from " @glimmer/component" ;
2+ import AiTopicGist from " ../../components/ai-topic-gist" ;
3+
4+ export default class AiTopicGistPlacement extends Component {
5+ static shouldRender (_outletArgs , helper ) {
6+ const settings = helper .siteSettings ;
7+ return settings .discourse_ai_enabled && settings .ai_summarization_enabled ;
8+ }
9+
10+ <template >
11+ <AiTopicGist @ topic ={{@ outletArgs.topic }} />
12+ </template >
13+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ discourse_ai:
351351 hidden : true
352352 ai_summarization_enabled :
353353 default : false
354+ client : true
354355 validator : " DiscourseAi::Configuration::LlmDependencyValidator"
355356 ai_summarization_model :
356357 default : " "
You can’t perform that action at this time.
0 commit comments