diff --git a/assets/javascripts/discourse/components/modal/spam-test-modal.gjs b/assets/javascripts/discourse/components/modal/spam-test-modal.gjs index 573b86fed..d1dc47d0a 100644 --- a/assets/javascripts/discourse/components/modal/spam-test-modal.gjs +++ b/assets/javascripts/discourse/components/modal/spam-test-modal.gjs @@ -29,7 +29,7 @@ export default class SpamTestModal extends Component { data: { post_url: this.postUrl, custom_instructions: this.args.model.customInstructions, - llm_id: this.args.model.llmId + llm_id: this.args.model.llmId, }, } ); diff --git a/lib/configuration/llm_enumerator.rb b/lib/configuration/llm_enumerator.rb index 9cbae76bb..02a266fca 100644 --- a/lib/configuration/llm_enumerator.rb +++ b/lib/configuration/llm_enumerator.rb @@ -57,9 +57,10 @@ def self.values(allowed_seeded_llms: nil) SQL if allowed_seeded_llms.is_a?(Array) - values = values.filter do |value_h| - value_h[:value] > 0 || allowed_seeded_llms.include?("custom:#{value_h[:value]}") - end + values = + values.filter do |value_h| + value_h[:value] > 0 || allowed_seeded_llms.include?("custom:#{value_h[:value]}") + end end values.each { |value_h| value_h[:value] = "custom:#{value_h[:value]}" }