Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[最佳实践]如何将后端返回的数据流中的ID和对话(问答的)的ID对应 #281

Open
jin-hua-z opened this issue Jul 19, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@jin-hua-z
Copy link

jin-hua-z commented Jul 19, 2024

contentRender: (item, dom, defaultDom) => {
if (item?.originData?.role === 'user-form') {
return <UserForm {...JSON.parse(item?.originData?.content)} />;
}
return defaultDom;
},
这里的originData如何自定义,需要能够使用对话过程的生成的ID和类型

@jin-hua-z jin-hua-z changed the title 如何将后端返回的数据流中的ID和对话(问答的)的ID对应 [最佳实践]如何将后端返回的数据流中的ID和对话(问答的)的ID对应 Jul 19, 2024
@ONLY-yours ONLY-yours self-assigned this Jul 24, 2024
@ONLY-yours ONLY-yours added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants