From db6057431a17ef963af034341d02d88fd2a918a6 Mon Sep 17 00:00:00 2001 From: Avraham Sakal Date: Tue, 16 Sep 2025 09:14:48 -0400 Subject: [PATCH] oops. forgot to use `openrouter` from the `ctx` --- pages/chat/facts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/chat/facts.ts b/pages/chat/facts.ts index 9d751ad..ee3db8e 100644 --- a/pages/chat/facts.ts +++ b/pages/chat/facts.ts @@ -99,7 +99,7 @@ export const facts = router({ messagesSincePreviousRunningSummary, newMessages, }, - ctx: { db }, + ctx: { openrouter }, }) => { const factsFromUserMessageResponse = await generateObject({ model: openrouter(MODEL_NAME),