* feat(agent): add AI model config with admin controls per-user model selection with admin cost ceiling and toggle. models filter/sort by output token cost. adds usage tracking, provider icons, and settings UI. * docs: add openclaw discord integration notes --------- Co-authored-by: Nicholai <nicholaivogelfilms@gmail.com>
19 lines
480 B
TypeScript
Executable File
19 lines
480 B
TypeScript
Executable File
import { drizzle } from "drizzle-orm/d1"
|
|
import * as schema from "./schema"
|
|
import * as netsuiteSchema from "./schema-netsuite"
|
|
import * as pluginSchema from "./schema-plugins"
|
|
import * as agentSchema from "./schema-agent"
|
|
import * as aiConfigSchema from "./schema-ai-config"
|
|
|
|
const allSchemas = {
|
|
...schema,
|
|
...netsuiteSchema,
|
|
...pluginSchema,
|
|
...agentSchema,
|
|
...aiConfigSchema,
|
|
}
|
|
|
|
export function getDb(d1: D1Database) {
|
|
return drizzle(d1, { schema: allSchemas })
|
|
}
|