-
Couldn't load subscription status.
- Fork 40
feat: support AI quick command feat #600
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
base: master
Are you sure you want to change the base?
Conversation
|
CI 挂了。 |
哎呀,我补了咋拉依赖还挂了😭 |
dd10b6a to
af9e5e6
Compare
af9e5e6 to
8e573cd
Compare
|
设计层面需要考虑,我下周才有时间跟任务owner讨论,先draft |
|
1、关于 |
f96e477 to
074b483
Compare


变更类型
请选择以下选项以描述 PR 的类型:
相关问题
变更内容
CodeBlock组件接口修改M,继承自MessageEntity,默认MessageEntitymessage字段,用于接受泛型类型的消息实体toolbars字段修改,原来只接受无参函数,现在接收code字符串和可选的message参数,从而能根据上下文内容动态渲染工具栏。CodeBlock组件修改目的toolbars需要拿到当前CodeBlock所在的那条message的信息去做一些校验或操作Content组件接口修改M和P:M继承自IMessageProps,默认IMessageProps;P继承自IPromptProps,默认IPromptPropsreplacePrompt字段,是用来替换渲染Prompt的函数组件replaceMessage字段,是用来替换渲染Message的函数组件Prompt的逻辑改成有replacePrompt就渲染replacePrompt,没有才渲染默认组件Prompt;原本渲染Message的逻辑改成有replaceMessage就渲染replaceMessage,没有才渲染默认组件Message。Content组件修改目的Prompt或Message的逻辑Markdown组件isHtmlContent字段,是用来区分是否要支持html内容显示message字段,是传给CodeBlock组件使用的rehype-raw,支持在Markdown → HTML 的转换过程中安全地解析并渲染「原始 HTML」标签Markdown组件修改目的CodeBlock组件的message字段的数据来源Message组件T,继承自MessageEntity,默认MessageEntityextraRender字段onRegenerate方法参数改为使用泛型TonStop方法参数改为使用泛型TMarkdown前面增加一个卡槽,渲染extraRender,用来支持新增的自定义结构Message组件修改目的Prompt组件T,继承自PromptEntity,默认PromptEntityextraRender字段Markdown后面增加一个卡槽,渲染extraRender,用来支持新增的自定义结构Prompt组件修改目的其他
详细描述
对应 Previewer