Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 8046a6f

Browse files
committed
FIX: Proper default LLM detection for inferred concepts
1 parent 478f31d commit 8046a6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/inferred_concepts/finder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def identify_concepts(content)
1515
.find { |p| p.id == SiteSetting.inferred_concepts_generate_persona.to_i }
1616
.new
1717

18-
llm = LlmModel.find(persona.default_llm_id)
18+
llm = LlmModel.find(persona.class.default_llm_id)
1919
context =
2020
DiscourseAi::Personas::BotContext.new(
2121
messages: [{ type: :user, content: content }],
@@ -154,7 +154,7 @@ def deduplicate_concepts(concept_names)
154154
.find { |p| p.id == SiteSetting.inferred_concepts_deduplicate_persona.to_i }
155155
.new
156156

157-
llm = LlmModel.find(persona.default_llm_id)
157+
llm = LlmModel.find(persona.class.default_llm_id)
158158

159159
# Create the input for the deduplicator
160160
input = { type: :user, content: concept_names.join(", ") }

0 commit comments

Comments
 (0)