Logo
Explore Help
Sign In
discourse/discourse-ai
1
0
Fork 0
You've already forked discourse-ai
mirror of https://github.com/discourse/discourse-ai.git synced 2025-07-09 07:33:30 +00:00
Code Issues Packages Projects Releases Wiki Activity
discourse-ai/db/migrate/20240807150605_add_default_to_provider_params.rb

7 lines
192 B
Ruby
Raw Normal View History

FIX: Correctly save provider-specific params for new models. (#744) 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.
2024-08-07 16:08:56 -03:00
# frozen_string_literal: true
class AddDefaultToProviderParams < ActiveRecord::Migration[7.1]
def change
change_column_default :llm_models, :provider_params, from: nil, to: {}
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 74ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API