Skip to content

Commit e4ba820

Browse files
committed
fix: solve map ML suggestions issue
1 parent 3794362 commit e4ba820

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

app/modules/ai_intelligence/services/ai_recommendation_service.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,16 @@ def legacy_fallback
8383
{
8484
source: 'legacy',
8585
model_version: nil,
86-
recommendations: suggestions.map { |champ| { champion: champ, score: nil } }
86+
recommendations: suggestions.map do |champ|
87+
{
88+
champion: champ,
89+
score: nil,
90+
win_probability: nil,
91+
synergy_score: nil,
92+
counter_score: nil,
93+
reasoning_tokens: []
94+
}
95+
end
8796
}
8897
end
8998

0 commit comments

Comments
 (0)