DEV: Use Rails 7.0 instead of 7.1 in post-migrations

This commit is contained in:
Loïc Guitaut 2024-06-26 18:37:21 +02:00 committed by Loïc Guitaut
parent 6f5873b072
commit e26c5986f2
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
class AddProviderSpecificParamsToLlmModels < ActiveRecord::Migration[7.1]
class AddProviderSpecificParamsToLlmModels < ActiveRecord::Migration[7.0]
def up
open_ai_organization = fetch_setting("ai_openai_organization")
@ -14,7 +14,7 @@ class AddProviderSpecificParamsToLlmModels < ActiveRecord::Migration[7.1]
DB.exec(<<~SQL, key_id: bedrock_access_key_id, region: bedrock_region) if bedrock_access_key_id
UPDATE llm_models
SET
SET
provider_params = jsonb_build_object('access_key_id', :key_id, 'region', :region),
name = CASE name WHEN 'claude-2' THEN 'anthropic.claude-v2:1'
WHEN 'claude-3-haiku' THEN 'anthropic.claude-3-haiku-20240307-v1:0'