Skip to content

Commit 8575fde

Browse files
committed
fix: improve initBuiltInProviders
1 parent 561895b commit 8575fde

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

object/init.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ func initBuiltInProviders() (string, string, string, string, string) {
164164
Type: "Local File System",
165165
ClientId: path,
166166
IsDefault: true,
167+
State: "Active",
167168
}
168169
_, err = AddProvider(storageProvider)
169170
if err != nil && !isUniqueConstraintError(err) {
@@ -197,6 +198,7 @@ func initBuiltInProviders() (string, string, string, string, string) {
197198
Category: "Storage",
198199
Type: "Local File System",
199200
ClientId: imagePath,
201+
State: "Inactive",
200202
}
201203
_, err = AddProvider(imageProvider)
202204
if err != nil && !isUniqueConstraintError(err) {
@@ -216,6 +218,7 @@ func initBuiltInProviders() (string, string, string, string, string) {
216218
Type: "Dummy",
217219
SubType: "Dummy",
218220
IsDefault: true,
221+
State: "Active",
219222
}
220223
_, err = AddProvider(modelProvider)
221224
if err != nil && !isUniqueConstraintError(err) {
@@ -233,6 +236,7 @@ func initBuiltInProviders() (string, string, string, string, string) {
233236
Type: "Dummy",
234237
SubType: "Dummy",
235238
IsDefault: true,
239+
State: "Active",
236240
}
237241
_, err = AddProvider(embeddingProvider)
238242
if err != nil && !isUniqueConstraintError(err) {

0 commit comments

Comments
 (0)