Move ai folder to lib/ (#542)

This commit is contained in:
Jared Palmer 2024-11-15 12:33:12 -05:00 committed by GitHub
parent 914238be80
commit b8643353c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 8 additions and 8 deletions

View file

@ -3,7 +3,7 @@
import { CoreMessage, type CoreUserMessage, generateText } from 'ai';
import { cookies } from 'next/headers';
import { customModel } from '@/ai';
import { customModel } from '@/lib/ai';
export async function saveModelId(model: string) {
const cookieStore = await cookies();

View file

@ -1,16 +1,16 @@
import {
convertToCoreMessages,
type Message,
StreamData,
convertToCoreMessages,
streamObject,
streamText,
} from 'ai';
import { z } from 'zod';
import { customModel } from '@/ai';
import { models } from '@/ai/models';
import { systemPrompt } from '@/ai/prompts';
import { auth } from '@/app/(auth)/auth';
import { customModel } from '@/lib/ai';
import { models } from '@/lib/ai/models';
import { systemPrompt } from '@/lib/ai/prompts';
import {
deleteChatById,
getChatById,

View file

@ -2,9 +2,9 @@ import { CoreMessage } from 'ai';
import { cookies } from 'next/headers';
import { notFound } from 'next/navigation';
import { DEFAULT_MODEL_NAME, models } from '@/ai/models';
import { auth } from '@/app/(auth)/auth';
import { Chat as PreviewChat } from '@/components/chat';
import { DEFAULT_MODEL_NAME, models } from '@/lib/ai/models';
import { getChatById, getMessagesByChatId } from '@/lib/db/queries';
import { convertToUIMessages } from '@/lib/utils';

View file

@ -1,7 +1,7 @@
import { cookies } from 'next/headers';
import { DEFAULT_MODEL_NAME, models } from '@/ai/models';
import { Chat } from '@/components/chat';
import { DEFAULT_MODEL_NAME, models } from '@/lib/ai/models';
import { generateUUID } from '@/lib/utils';
export default async function Page() {