chore: remove tokenlens and token usage tracking (#1357)

This commit is contained in:
josh 2025-12-15 16:56:10 +00:00 committed by GitHub
parent 5f9e231788
commit 7942e97095
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 60 additions and 773 deletions

View file

@ -3,7 +3,6 @@ import {
boolean,
foreignKey,
json,
jsonb,
pgTable,
primaryKey,
text,
@ -11,7 +10,6 @@ import {
uuid,
varchar,
} from "drizzle-orm/pg-core";
import type { AppUsage } from "../usage";
export const user = pgTable("User", {
id: uuid("id").primaryKey().notNull().defaultRandom(),
@ -31,7 +29,6 @@ export const chat = pgTable("Chat", {
visibility: varchar("visibility", { enum: ["public", "private"] })
.notNull()
.default("private"),
lastContext: jsonb("lastContext").$type<AppUsage | null>(),
});
export type Chat = InferSelectModel<typeof chat>;