mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-06 17:30:20 +00:00
* Seeding the SRV-backed model should happen inside an initializer. * Keep the model up to date when the hidden setting changes. * Use the correct Mixtral model name and fix previous data migration. * URL validation should trigger only when we attempt to update it.
9 lines
245 B
Ruby
9 lines
245 B
Ruby
# frozen_string_literal: true
|
|
|
|
begin
|
|
LlmModel.seed_srv_backed_model
|
|
rescue PG::UndefinedColumn => e
|
|
# If this code runs before migrations, an attribute might be missing.
|
|
Rails.logger.warn("Failed to seed SRV-Backed LLM: #{e.meesage}")
|
|
end
|