FIX: dialects var was not defined in prod (#617)
This commit is contained in:
parent
e22194f321
commit
8b00c47087
|
@ -25,6 +25,8 @@ module DiscourseAi
|
|||
end
|
||||
|
||||
def dialect_for(model_name)
|
||||
dialects = []
|
||||
|
||||
if Rails.env.test? || Rails.env.development?
|
||||
dialects = [DiscourseAi::Completions::Dialects::Fake]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue