An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Fix import paths in code
Yoshiki Miura8dea880afbd5
diff --git a/app/action.tsx b/app/actions.tsxsimilarity index 100%rename from app/action.tsxrename to app/actions.tsxdiff --git a/app/page.tsx b/app/page.tsxindex f6e3975d..e39980fd 100644--- a/app/page.tsx+++ b/app/page.tsx@@ -1,6 +1,6 @@import { Chat } from '@/components/chat'import { nanoid } from 'ai'-import { AI } from './action'+import { AI } from './actions'export const runtime = 'edge'diff --git a/app/search/[id]/page.tsx b/app/search/[id]/page.tsxindex 40a38173..7feeab66 100644--- a/app/search/[id]/page.tsx+++ b/app/search/[id]/page.tsx@@ -1,7 +1,7 @@import { notFound, redirect } from 'next/navigation'import { Chat } from '@/components/chat'import { getChat } from '@/lib/actions/chat'-import { AI } from '@/app/action'+import { AI } from '@/app/actions'export const runtime = 'edge'diff --git a/components/chat-messages.tsx b/components/chat-messages.tsxindex 0e9d0a4a..3d7e5568 100644--- a/components/chat-messages.tsx+++ b/components/chat-messages.tsx@@ -1,5 +1,5 @@import { StreamableValue, useUIState } from 'ai/rsc'-import type { AI, UIState } from '@/app/action'+import type { AI, UIState } from '@/app/actions'import { CollapsibleMessage } from './collapsible-message'interface ChatMessagesProps {diff --git a/components/chat-panel.tsx b/components/chat-panel.tsxindex 4bd46872..8d75fc15 100644--- a/components/chat-panel.tsx+++ b/components/chat-panel.tsx@@ -1,6 +1,6 @@import { useEffect, useState, useRef } from 'react'import { useRouter } from 'next/navigation'-import type { AI, UIState } from '@/app/action'+import type { AI, UIState } from '@/app/actions'import { useUIState, useActions } from 'ai/rsc'import { cn } from '@/lib/utils'import { UserMessage } from './user-message'diff --git a/components/copilot.tsx b/components/copilot.tsxindex 5d19dca5..0c2887ea 100644--- a/components/copilot.tsx+++ b/components/copilot.tsx@@ -8,7 +8,7 @@ import { Button } from './ui/button'import { Card } from './ui/card'import { ArrowRight, Check, FastForward, Sparkles } from 'lucide-react'import { useActions, useStreamableValue, useUIState } from 'ai/rsc'-import type { AI } from '@/app/action'+import type { AI } from '@/app/actions'import { IconLogo } from './ui/icons'import { cn } from '@/lib/utils'diff --git a/components/followup-panel.tsx b/components/followup-panel.tsxindex 3afa00f6..68b85e83 100644--- a/components/followup-panel.tsx+++ b/components/followup-panel.tsx@@ -4,7 +4,7 @@ import { useState } from 'react'import { Button } from './ui/button'import { Input } from './ui/input'import { useActions, useUIState } from 'ai/rsc'-import type { AI } from '@/app/action'+import type { AI } from '@/app/actions'import { UserMessage } from './user-message'import { ArrowRight } from 'lucide-react'diff --git a/components/search-related.tsx b/components/search-related.tsxindex b61e4029..5a3f04ee 100644--- a/components/search-related.tsx+++ b/components/search-related.tsx@@ -9,7 +9,7 @@ import {useUIState,readStreamableValue} from 'ai/rsc'-import { AI } from '@/app/action'+import { AI } from '@/app/actions'import { UserMessage } from './user-message'import { PartialRelated } from '@/lib/schema/related'