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

Commit bd1420d

Browse files
SamSaffronGrubba27
andauthored
Update app/controllers/discourse_ai/admin/ai_personas_controller.rb
Co-authored-by: Gabriel Grubba <[email protected]>
1 parent 0ec222f commit bd1420d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/discourse_ai/admin/ai_personas_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def stream_reply
109109

110110
return render_json_error(I18n.t("discourse_ai.errors.persona_disabled")) if !persona.enabled
111111

112-
if !persona.default_llm.present?
112+
if persona.default_llm.blank?
113113
return render_json_error(I18n.t("discourse_ai.errors.no_default_llm"))
114114
end
115115

0 commit comments

Comments
 (0)