re-organize files
This commit is contained in:
@@ -28,7 +28,7 @@ import type {
|
||||
DraftMessage,
|
||||
OtherParameters,
|
||||
SendMessageStatus,
|
||||
} from "../../../types";
|
||||
} from "@/types";
|
||||
import Markdown from "react-markdown";
|
||||
import {
|
||||
IconTrash,
|
||||
@@ -37,10 +37,9 @@ import {
|
||||
IconX,
|
||||
IconLoaderQuarter,
|
||||
} from "@tabler/icons-react";
|
||||
import { useTRPC, useTRPCClient } from "../../../trpc/client";
|
||||
import { useTRPC, useTRPCClient } from "../../trpc-client";
|
||||
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import { nanoid } from "nanoid";
|
||||
import type { Conversation } from "../../../database/common";
|
||||
import type { Conversation } from "@/database/common";
|
||||
|
||||
export default function ChatPage() {
|
||||
const pageContext = usePageContext();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { PageContextServer } from "vike/types";
|
||||
import { createCaller } from "../trpc.js";
|
||||
import { createCaller } from "../../../server/trpc/chat.js";
|
||||
import { getDb } from "../../../database/postgres.js";
|
||||
import { getOpenrouter } from "../provider.js";
|
||||
import { getOpenrouter } from "../../../server/provider.js";
|
||||
import { env } from "../../../server/env.js";
|
||||
|
||||
export type Data = Awaited<ReturnType<typeof data>>;
|
||||
|
||||
Reference in New Issue
Block a user