feat: Show prompt send to LLM for assistant answer #2098 (#2142)

### What problem does this PR solve?

feat: Show prompt send to LLM for assistant answer #2098
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-28 19:05:15 +08:00
committed by GitHub
parent 527ebec2f5
commit 190e144a70
9 changed files with 232 additions and 2 deletions

View File

@ -1,7 +1,10 @@
import Markdown from 'react-markdown';
import SyntaxHighlighter from 'react-syntax-highlighter';
import rehypeRaw from 'rehype-raw';
import remarkGfm from 'remark-gfm';
import styles from './index.less';
const HightLightMarkdown = ({
children,
}: {
@ -10,6 +13,8 @@ const HightLightMarkdown = ({
return (
<Markdown
remarkPlugins={[remarkGfm]}
rehypePlugins={[rehypeRaw]}
className={styles.text}
components={
{
code(props: any) {