add basic ui for private inference resource

This commit is contained in:
miloschwartz
2026-08-04 16:54:23 -04:00
parent c085de1e9e
commit 7759d87835
19 changed files with 828 additions and 208 deletions
+4 -4
View File
@@ -232,9 +232,9 @@ export const resourceAiProviders = pgTable(
.notNull()
.references(() => aiProviders.providerId, { onDelete: "cascade" }),
modelAccessMode: varchar("modelAccessMode")
.$type<"passthrough" | "catalog" | "allowlist">()
.$type<"catalog" | "allowlist">()
.notNull()
.default("passthrough")
.default("catalog")
},
(t) => [primaryKey({ columns: [t.resourceId, t.providerId] })]
);
@@ -523,9 +523,9 @@ export const siteResourceAiProviders = pgTable(
.notNull()
.references(() => aiProviders.providerId, { onDelete: "cascade" }),
modelAccessMode: varchar("modelAccessMode")
.$type<"passthrough" | "catalog" | "allowlist">()
.$type<"catalog" | "allowlist">()
.notNull()
.default("passthrough")
.default("catalog")
},
(t) => [primaryKey({ columns: [t.siteResourceId, t.providerId] })]
);