This commit is contained in:
parent
02cc043f33
commit
84e153cf03
|
|
@ -141,61 +141,61 @@ export default async function ChatIndexPage({ params: { locale } }: { params: {
|
|||
|
||||
|
||||
|
||||
function ChatIndexPage_bak({ params: { locale } }: { params: { locale: string } }) {
|
||||
const session = await auth()
|
||||
const avatarUrl = session?.user?.image
|
||||
const id = nanoid()
|
||||
// function ChatIndexPage_bak({ params: { locale } }: { params: { locale: string } }) {
|
||||
// const session = await auth()
|
||||
// const avatarUrl = session?.user?.image
|
||||
// const id = nanoid()
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* <Web3Provider> */}
|
||||
<Header />
|
||||
// return (
|
||||
// <>
|
||||
// {/* <Web3Provider> */}
|
||||
// <Header />
|
||||
|
||||
<div className=' '>
|
||||
{/* <Chat
|
||||
initialMessages={initialMessages}
|
||||
id={id}
|
||||
showLanding
|
||||
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'>
|
||||
<FadeIn className=''>
|
||||
{/* <LogoAI
|
||||
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=' '>
|
||||
// {/* <Chat
|
||||
// initialMessages={initialMessages}
|
||||
// id={id}
|
||||
// showLanding
|
||||
// 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'>
|
||||
// <FadeIn className=''>
|
||||
// {/* <LogoAI
|
||||
// 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">
|
||||
|
||||
<ChatModel className='' position='relative lg:w-full' id={id} showLanding avatarUrl={avatarUrl} />
|
||||
{/* <PromptFormIndex
|
||||
id={id}
|
||||
// onSubmit={value => {
|
||||
// <ChatModel className='' position='relative lg:w-full' id={id} showLanding avatarUrl={avatarUrl} />
|
||||
// {/* <PromptFormIndex
|
||||
// id={id}
|
||||
// // onSubmit={value => {
|
||||
|
||||
// console.log('--value----', value)
|
||||
// // await new Promise(r => setTimeout(r, 300));
|
||||
// // await append(
|
||||
// // {
|
||||
// // id,
|
||||
// // content: value,
|
||||
// // role: 'user'
|
||||
// // },
|
||||
// // { functions: functionSchemas }
|
||||
// // )
|
||||
// }}
|
||||
// input={input}
|
||||
// setInput={setInput}
|
||||
// isLoading={isLoading}
|
||||
/> }
|
||||
</div> */}
|
||||
</FadeIn>
|
||||
</div>
|
||||
// // console.log('--value----', value)
|
||||
// // // await new Promise(r => setTimeout(r, 300));
|
||||
// // // await append(
|
||||
// // // {
|
||||
// // // id,
|
||||
// // // content: value,
|
||||
// // // role: 'user'
|
||||
// // // },
|
||||
// // // { functions: functionSchemas }
|
||||
// // // )
|
||||
// // }}
|
||||
// // input={input}
|
||||
// // setInput={setInput}
|
||||
// // isLoading={isLoading}
|
||||
// /> }
|
||||
// </div> */}
|
||||
// </FadeIn>
|
||||
// </div>
|
||||
|
||||
<Article />
|
||||
</div>
|
||||
// <Article />
|
||||
// </div>
|
||||
|
||||
<Footer />
|
||||
{/* </Web3Provider> */}
|
||||
</>
|
||||
// <Footer />
|
||||
// {/* </Web3Provider> */}
|
||||
// </>
|
||||
|
||||
|
||||
)
|
||||
}
|
||||
// )
|
||||
// }
|
||||
|
|
|
|||
Loading…
Reference in New Issue