basic user-tailored UI
This commit is contained in:
@@ -3,6 +3,7 @@ import { TypeCompiler } from "@sinclair/typebox/compiler";
|
||||
import { initTRPC, TRPCError } from "@trpc/server";
|
||||
import type { getDb } from "../database/postgres";
|
||||
import type { getOpenrouter } from "../pages/chat/provider";
|
||||
import type { JWT } from "@auth/core/jwt";
|
||||
|
||||
/**
|
||||
* Initialization of tRPC backend
|
||||
@@ -13,6 +14,7 @@ const t = initTRPC
|
||||
object & {
|
||||
db: ReturnType<typeof getDb>;
|
||||
openrouter: ReturnType<typeof getOpenrouter>;
|
||||
jwt?: JWT | null;
|
||||
}
|
||||
>()
|
||||
.create(/*{
|
||||
|
||||
Reference in New Issue
Block a user