add default providers and support overrides

This commit is contained in:
miloschwartz
2026-07-31 15:55:10 -04:00
committed by Owen
parent 694fe98131
commit e5ac6ec7cd
6 changed files with 96 additions and 30 deletions
+11 -1
View File
@@ -1545,7 +1545,17 @@ export const aiProviders = sqliteTable("aiProviders", {
.references(() => orgs.orgId, { onDelete: "cascade" }),
name: text("name").notNull(),
type: text("type")
.$type<"openai" | "anthropic" | "bedrock" | "custom">()
.$type<
| "openai"
| "anthropic"
| "googleGemini"
| "vertexAi"
| "bedrock"
| "microsoftFoundry"
| "openRouter"
| "vercelAiGateway"
| "custom"
>()
.notNull(),
upstreamUrl: text("upstreamUrl"),
apiKey: text("apiKey"),