discourse-ai/db/fixtures/602_srv_backed_llm_model.rb
Roman Rizzi 5cb91217bd
FIX: Flaky SRV-backed model seeding. (#708)
* 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.
2024-07-08 18:47:10 -03:00

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