Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 654f90f

Browse files
authored
FIX: convert provider_params hash to json before db insert (#1081)
* FIX: convert provider_params hash to json before db insert * FIX: lint issues in config migration * FIX: simplify provider_params json conversion
1 parent a5e5ae7 commit 654f90f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/migrate/20250110114305_embedding_config_data_migration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def persist_config(attrs)
185185
tokenizer_class: attrs[:tokenizer_class],
186186
url: attrs[:url],
187187
api_key: attrs[:api_key],
188-
provider_params: attrs[:provider_params],
188+
provider_params: attrs[:provider_params]&.to_json,
189189
seeded: !!attrs[:seeded],
190190
now: Time.zone.now,
191191
)

0 commit comments

Comments
 (0)