diff --git a/lib/configuration/llm_enumerator.rb b/lib/configuration/llm_enumerator.rb index f804db9a..8b308510 100644 --- a/lib/configuration/llm_enumerator.rb +++ b/lib/configuration/llm_enumerator.rb @@ -10,12 +10,12 @@ module DiscourseAi end def self.values - values = DB.query_hash(<<~SQL) + values = DB.query_hash(<<~SQL).map(&:symbolize_keys) SELECT display_name AS name, id AS value FROM llm_models SQL - values.each { |value_h| value_h["value"] = "custom:#{value_h["value"]}" } + values.each { |value_h| value_h[:value] = "custom:#{value_h[:value]}" } values end