Chore: chat log refactor (#5523)

This commit is contained in:
KVOJJJin
2024-06-24 12:29:14 +08:00
committed by GitHub
parent 47a5d4527b
commit 8294e97113
97 changed files with 165 additions and 5249 deletions

View File

@@ -1,11 +1,8 @@
'use client'
import type { FC } from 'react'
import React from 'react'
import type { IMainProps } from '@/app/components/share/chat'
import ChatWithHistoryWrap from '@/app/components/base/chat/chat-with-history'
const Chat: FC<IMainProps> = () => {
const Chat = () => {
return (
<ChatWithHistoryWrap />
)

View File

@@ -1,14 +1,12 @@
'use client'
import type { FC } from 'react'
import React, { useEffect } from 'react'
import cn from 'classnames'
import type { IMainProps } from '@/app/components/share/chat'
import EmbeddedChatbot from '@/app/components/base/chat/embedded-chatbot'
import Loading from '@/app/components/base/loading'
import { fetchSystemFeatures } from '@/service/share'
import LogoSite from '@/app/components/base/logo/logo-site'
const Chatbot: FC<IMainProps> = () => {
const Chatbot = () => {
const [isSSOEnforced, setIsSSOEnforced] = React.useState(true)
const [loading, setLoading] = React.useState(true)

View File

@@ -1,13 +1,10 @@
import type { FC } from 'react'
import React from 'react'
import type { IMainProps } from '@/app/components/share/chat'
import Main from '@/app/components/share/text-generation'
const TextGeneration: FC<IMainProps> = () => {
const Completion = () => {
return (
<Main />
)
}
export default React.memo(TextGeneration)
export default React.memo(Completion)

View File

@@ -1,13 +1,11 @@
import type { FC } from 'react'
import React from 'react'
import type { IMainProps } from '@/app/components/share/text-generation'
import Main from '@/app/components/share/text-generation'
const TextGeneration: FC<IMainProps> = () => {
const Workflow = () => {
return (
<Main isWorkflow />
)
}
export default React.memo(TextGeneration)
export default React.memo(Workflow)