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

Commit adc7e27

Browse files
committed
fix
1 parent 1f267a8 commit adc7e27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/models/ai_persona.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ def allowed_seeded_model
281281
return if default_llm.blank?
282282

283283
llm = LlmModel.find_by(id: default_llm.split(":").last.to_i)
284+
return if llm.nil?
284285
return if !llm.seeded?
285286

286287
return if SiteSetting.ai_bot_allowed_seeded_models.include?(llm.id.to_s)

0 commit comments

Comments
 (0)