This commit is contained in:
hailin 2025-03-14 16:30:28 +08:00
parent 02cc043f33
commit 84e153cf03
1 changed files with 50 additions and 50 deletions

View File

@ -141,61 +141,61 @@ export default async function ChatIndexPage({ params: { locale } }: { params: {
function ChatIndexPage_bak({ params: { locale } }: { params: { locale: string } }) { // function ChatIndexPage_bak({ params: { locale } }: { params: { locale: string } }) {
const session = await auth() // const session = await auth()
const avatarUrl = session?.user?.image // const avatarUrl = session?.user?.image
const id = nanoid() // const id = nanoid()
return ( // return (
<> // <>
{/* <Web3Provider> */} // {/* <Web3Provider> */}
<Header /> // <Header />
<div className=' '> // <div className=' '>
{/* <Chat // {/* <Chat
initialMessages={initialMessages} // initialMessages={initialMessages}
id={id} // id={id}
showLanding // showLanding
avatarUrl={avatarUrl} // avatarUrl={avatarUrl}
/> */} // /> */}
<div className='pt-[3rem] lg:pt-[5rem] pb-[2rem] lg:pb-[3rem] w-11/12 sm:w-5/6 md:w-3/4 lg:w-2/3 xl:w-3/5 2xl:w-1/2 mx-auto'> // <div className='pt-[3rem] lg:pt-[5rem] pb-[2rem] lg:pb-[3rem] w-11/12 sm:w-5/6 md:w-3/4 lg:w-2/3 xl:w-3/5 2xl:w-1/2 mx-auto'>
<FadeIn className=''> // <FadeIn className=''>
{/* <LogoAI // {/* <LogoAI
className='flex text-center m-auto' // className='flex text-center m-auto'
/> */} // /> */}
{/* <div className="space-y-4 py-[4rem] w-5/6 lg:w-5/6 xl:w-4/5 2xl:w-3/4 m-auto"> // {/* <div className="space-y-4 py-[4rem] w-5/6 lg:w-5/6 xl:w-4/5 2xl:w-3/4 m-auto">
<ChatModel className='' position='relative lg:w-full' id={id} showLanding avatarUrl={avatarUrl} /> // <ChatModel className='' position='relative lg:w-full' id={id} showLanding avatarUrl={avatarUrl} />
{/* <PromptFormIndex // {/* <PromptFormIndex
id={id} // id={id}
// onSubmit={value => { // // onSubmit={value => {
// console.log('--value----', value) // // console.log('--value----', value)
// // await new Promise(r => setTimeout(r, 300)); // // // await new Promise(r => setTimeout(r, 300));
// // await append( // // // await append(
// // { // // // {
// // id, // // // id,
// // content: value, // // // content: value,
// // role: 'user' // // // role: 'user'
// // }, // // // },
// // { functions: functionSchemas } // // // { functions: functionSchemas }
// // ) // // // )
// }} // // }}
// input={input} // // input={input}
// setInput={setInput} // // setInput={setInput}
// isLoading={isLoading} // // isLoading={isLoading}
/> } // /> }
</div> */} // </div> */}
</FadeIn> // </FadeIn>
</div> // </div>
<Article /> // <Article />
</div> // </div>
<Footer /> // <Footer />
{/* </Web3Provider> */} // {/* </Web3Provider> */}
</> // </>
) // )
} // }