mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-07 12:08:13 +00:00
Creating a new model, either manually or from presets, doesn't initialize the `provider_params` object, meaning their custom params won't persist. Additionally, this change adds some validations for Bedrock params, which are mandatory, and a clear message when a completion fails because we cannot build the URL.
7 lines
192 B
Ruby
7 lines
192 B
Ruby
# frozen_string_literal: true
|
|
class AddDefaultToProviderParams < ActiveRecord::Migration[7.1]
|
|
def change
|
|
change_column_default :llm_models, :provider_params, from: nil, to: {}
|
|
end
|
|
end
|