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

Commit 190a20c

Browse files
committed
FIX: Seeded LLM setting considers string of ID instead of
string with `custom:` prefix.
1 parent 61758ff commit 190a20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/discourse_ai/admin/ai_spam_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def update
1515
llm_model_id = updated_params[:llm_model_id] = allowed_params[:llm_model_id]
1616
if llm_model_id.to_i < 0 &&
1717
!SiteSetting.ai_spam_detection_model_allowed_seeded_models_map.include?(
18-
"custom:#{llm_model_id}",
18+
llm_model_id.to_s,
1919
)
2020
return(
2121
render_json_error(

0 commit comments

Comments
 (0)