fix: build errors (couldn't find package)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { appRouter } from "@/server/trpc/router.js";
|
||||
import { appRouter } from "./trpc/router";
|
||||
// TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/server. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
|
||||
import {
|
||||
type Get,
|
||||
@@ -6,8 +6,8 @@ import {
|
||||
env as getEnv,
|
||||
} from "@universal-middleware/core";
|
||||
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
|
||||
import { getDb, getDbClient } from "@/database/postgres";
|
||||
import { getOpenrouter } from "@/server/provider.js";
|
||||
import { getDb, getDbClient } from "../database/postgres";
|
||||
import { getOpenrouter } from "./provider.js";
|
||||
import { env as processEnv } from "./env.js";
|
||||
import { getToken } from "@auth/core/jwt";
|
||||
|
||||
|
||||
+3
-3
@@ -4,7 +4,7 @@ import type {
|
||||
OtherParameters,
|
||||
CommittedMessage,
|
||||
DraftMessage,
|
||||
} from "@/types.js";
|
||||
} from "../../types.js";
|
||||
// import { client } from "../../database/milvus";
|
||||
// import {
|
||||
// ConsistencyLevelEnum,
|
||||
@@ -16,8 +16,8 @@ import { facts, createCaller as createCallerFacts } from "./facts.js";
|
||||
import { createCaller as createCallerMessages } from "./messages.js";
|
||||
import { createCaller as createCallerFactTriggers } from "./fact-triggers.js";
|
||||
import { factTriggers } from "./fact-triggers.js";
|
||||
import { MODEL_NAME } from "@/server/provider.js";
|
||||
import type { Fact, FactTrigger } from "@/database/common.js";
|
||||
import { MODEL_NAME } from "../provider.js";
|
||||
import type { Fact, FactTrigger } from "@database/common";
|
||||
|
||||
const mainSystemPrompt = ({
|
||||
systemPrompt,
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
import {
|
||||
router,
|
||||
publicProcedure,
|
||||
createCallerFactory,
|
||||
} from "@/server/trpc/server.js";
|
||||
import type { DraftMessage } from "@/types.js";
|
||||
import { MODEL_NAME } from "@/server/provider.js";
|
||||
import { router, publicProcedure, createCallerFactory } from "./server.js";
|
||||
import type { DraftMessage } from "../../types.js";
|
||||
import { MODEL_NAME } from "../provider.js";
|
||||
import { generateObject, generateText, jsonSchema } from "ai";
|
||||
import type { Fact } from "@/database/common.js";
|
||||
import type { Fact } from "@database/common.js";
|
||||
|
||||
const factTriggersSystemPrompt = ({
|
||||
previousRunningSummary,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { router, publicProcedure, createCallerFactory } from "./server.js";
|
||||
import type { DraftMessage } from "@/types.js";
|
||||
import { MODEL_NAME, openrouter } from "@/server/provider.js";
|
||||
import type { DraftMessage } from "../../types.js";
|
||||
import { MODEL_NAME, openrouter } from "../provider.js";
|
||||
import { generateObject, generateText, jsonSchema } from "ai";
|
||||
|
||||
const factsFromNewMessagesSystemPrompt = ({
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import {
|
||||
router,
|
||||
publicProcedure,
|
||||
createCallerFactory,
|
||||
} from "@/server/trpc/server";
|
||||
import { router, publicProcedure, createCallerFactory } from "./server";
|
||||
import { MODEL_NAME } from "../provider.js";
|
||||
import { generateObject, generateText, jsonSchema } from "ai";
|
||||
import type { DraftMessage } from "../../types.js";
|
||||
|
||||
Reference in New Issue
Block a user