mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-05 12:10:52 +02:00
add basic ui for private inference resource
This commit is contained in:
@@ -229,9 +229,9 @@ export const resourceAiProviders = sqliteTable(
|
||||
.notNull()
|
||||
.references(() => aiProviders.providerId, { onDelete: "cascade" }),
|
||||
modelAccessMode: text("modelAccessMode")
|
||||
.$type<"passthrough" | "catalog" | "allowlist">()
|
||||
.$type<"catalog" | "allowlist">()
|
||||
.notNull()
|
||||
.default("passthrough")
|
||||
.default("catalog")
|
||||
},
|
||||
(t) => [primaryKey({ columns: [t.resourceId, t.providerId] })]
|
||||
);
|
||||
@@ -508,9 +508,9 @@ export const siteResourceAiProviders = sqliteTable(
|
||||
.notNull()
|
||||
.references(() => aiProviders.providerId, { onDelete: "cascade" }),
|
||||
modelAccessMode: text("modelAccessMode")
|
||||
.$type<"passthrough" | "catalog" | "allowlist">()
|
||||
.$type<"catalog" | "allowlist">()
|
||||
.notNull()
|
||||
.default("passthrough")
|
||||
.default("catalog")
|
||||
},
|
||||
(t) => [primaryKey({ columns: [t.siteResourceId, t.providerId] })]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user