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

Commit 88811f9

Browse files
committed
fixes
1 parent 2377b28 commit 88811f9

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

lib/ai_helper/painter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def diffusion_prompt(text, user)
6666
messages: [{ type: :user, content: text, id: user.username }],
6767
)
6868

69-
DiscourseAi::Completions::Llm.proxy(SiteSetting.ai_helper_model).generate(
69+
DiscourseAi::Completions::Llm.proxy(SiteSetting.ai_default_llm_model).generate(
7070
prompt,
7171
user: user,
7272
feature_name: "illustrate_post",

lib/configuration/llm_dependency_validator.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def initialize(opts = {})
1010
def valid_value?(val)
1111
return true if val == "f"
1212

13-
if @opts[:name] == :ai_summarization_enabled || @opts[:name] == :ai_helper_enabled
13+
if @opts[:name] == :ai_summarization_enabled || @opts[:name] == :ai_helper_enabled ||
14+
@opts[:name] == :ai_embeddings_semantic_search_enabled
1415
has_llms = LlmModel.count > 0
1516
@no_llms_configured = !has_llms
1617
has_llms

spec/requests/admin/ai_features_controller_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
before do
1212
sign_in(admin)
13+
assign_fake_provider_to(:ai_default_llm_model)
1314
SiteSetting.ai_bot_enabled = true
1415
SiteSetting.discourse_ai_enabled = true
1516
end

spec/requests/admin/ai_llms_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@
515515
end
516516

517517
it "validates the model is not in use" do
518-
fake_llm = assign_fake_provider_to(:ai_default_llm_model)
518+
fake_llm = assign_fake_provider_to(:ai_helper_model)
519519

520520
delete "/admin/plugins/discourse-ai/ai-llms/#{fake_llm.id}.json"
521521

0 commit comments

Comments
 (0)