feat: multiple model configuration (#2196)
Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
parent
6bfdfab6f3
commit
d5361b8d09
56 changed files with 3209 additions and 188 deletions
22
web/app/components/base/chat/chat/answer/basic-content.tsx
Normal file
22
web/app/components/base/chat/chat/answer/basic-content.tsx
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import type { FC } from 'react'
|
||||
import type { ChatItem } from '../../types'
|
||||
import { Markdown } from '@/app/components/base/markdown'
|
||||
|
||||
type BasicContentProps = {
|
||||
item: ChatItem
|
||||
}
|
||||
const BasicContent: FC<BasicContentProps> = ({
|
||||
item,
|
||||
}) => {
|
||||
const {
|
||||
annotation,
|
||||
content,
|
||||
} = item
|
||||
|
||||
if (annotation?.logAnnotation)
|
||||
return <Markdown content={annotation?.logAnnotation.content || ''} />
|
||||
|
||||
return <Markdown content={content} />
|
||||
}
|
||||
|
||||
export default BasicContent
|
||||
Loading…
Add table
Add a link
Reference in a new issue