mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-23 17:55:46 +08:00
Chore: chat log refactor (#5523)
This commit is contained in:
@@ -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 />
|
||||
)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user