Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Dec 11, 2024
1 parent ab7d244 commit fb9ed28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
);
Expand Down
7 changes: 4 additions & 3 deletions lib/configuration/llm_enumerator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]}" }
Expand Down

0 comments on commit fb9ed28

Please sign in to comment.