@ant-design/pro-chat
Version:
a solution for ai chat
27 lines • 2.44 kB
JavaScript
export var example = {
chats: [{
content: '请展示完整的会话高亮效果?',
createAt: 1697862242452,
id: 'ZGxiX2p4',
role: 'user',
updateAt: 1697862243540
}, {
content: "\n# This is an H1\n## This is an H2\n### This is an H3\n#### This is an H4\n##### This is an H5\n\nThe point of reference-style links is not that they\u2019re easier to write. The point is that with reference-style links, your document source is vastly more readable. Compare the above examples: using reference-style links, the paragraph itself is only 81 characters long; with inline-style links, it\u2019s 176 characters; and as raw `HTML`, it\u2019s 234 characters. In the raw `HTML`, there\u2019s more markup than there is text.\n\n---\n\n> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet.\n\n---\n\nan example | *an example* | **an example**\n\n---\n\n1. Bird\n1. McHale\n1. Parish\n 1. Bird\n 1. McHale\n 1. Parish\n\n---\n\n- Red\n- Green\n- Blue\n - Red\n - Green\n - Blue\n\n---\n\nThis is [an example](http://example.com/ \"Title\") inline link.\n\n<http://example.com/>\n\n\n| title | title | title |\n| --- | --- | --- |\n| content | content | content |\n\n\n```bash\n$ pnpm install\n```\n\n\n```javascript\nimport { renderHook } from '@testing-library/react-hooks';\nimport { act } from 'react-dom/test-utils';\nimport { useDropNodeOnCanvas } from './useDropNodeOnCanvas';\n```\n\n---\n\n\u4EE5\u4E0B\u662F\u4E00\u6BB5Markdown\u683C\u5F0F\u7684LaTeX\u6570\u5B66\u516C\u5F0F\uFF1A\n\n\u6211\u662F\u4E00\u4E2A\u884C\u5185\u516C\u5F0F\uFF1A$E=mc^2$\n\n\u6211\u662F\u4E00\u4E2A\u72EC\u7ACB\u516C\u5F0F\uFF1A\n$$\n\\sum_{i=1}^{n} x_i = x_1 + x_2 + \\ldots + x_n\n$$\n\n\u6211\u662F\u4E00\u4E2A\u5E26\u6709\u5206\u5F0F\u7684\u516C\u5F0F\uFF1A\n$$\n\\frac{{n!}}{{k!(n-k)!}} = \\binom{n}{k}\n$$\n\n\u6211\u662F\u4E00\u4E2A\u5E26\u6709\u4E0A\u4E0B\u6807\u7684\u516C\u5F0F\uFF1A\n$$\nx^{2} + y^{2} = r^{2}\n$$\n\n\u6211\u662F\u4E00\u4E2A\u5E26\u6709\u79EF\u5206\u7B26\u53F7\u7684\u516C\u5F0F\uFF1A\n$$\n\\int_{a}^{b} f(x) \\, dx\n$$\n",
createAt: 1697862247302,
id: 'Sb5pAzLL',
parentId: 'ZGxiX2p4',
role: 'assistant',
updateAt: 1697862249387,
model: 'gpt-3.5-turbo'
}],
config: {
model: 'gpt-3.5-turbo',
params: {
frequency_penalty: 0,
presence_penalty: 0,
temperature: 0.6,
top_p: 1
},
systemRole: ''
}
};