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

feat: support custom chat render #3499

Merged
merged 4 commits into from
Apr 10, 2024
Merged

Conversation

Ricbet
Copy link
Member

@Ricbet Ricbet commented Apr 7, 2024

Types

  • 🎉 New Features

Background or solution

新增 registerChatRender API。可以对 Chat 面板的各个组件进行自定义渲染。

使用方式👇
image

只需将自定义组件传递给对应方法即可

Changelog

@Ricbet Ricbet added v3 OpenSumi 3.0 AI labels Apr 7, 2024
@Ricbet Ricbet self-assigned this Apr 7, 2024
Copy link

railway-app bot commented Apr 7, 2024

This PR was not deployed automatically as @Ricbet does not have access to the Railway project.

In order to get automatic PR deploys, please add @Ricbet to the project inside the project settings page.

@opensumi opensumi bot added the 🎨 feature feature required label Apr 7, 2024
@Ricbet Ricbet force-pushed the feat/support-custom-chat-render branch from 9e1feb3 to 6e2c37c Compare April 7, 2024 09:50
@Ricbet
Copy link
Member Author

Ricbet commented Apr 7, 2024

/next

@opensumi
Copy link
Contributor

opensumi bot commented Apr 7, 2024

🎉 PR Next publish successful!

2.27.3-next-1712483736.0

Copy link

codecov bot commented Apr 10, 2024

Codecov Report

Attention: Patch coverage is 7.69231% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 56.58%. Comparing base (c6e8832) to head (aa99e7b).
Report is 1 commits behind head on main.

Files Patch % Lines
...ai-native/src/browser/chat/chat.render.registry.ts 0.00% 11 Missing ⚠️
packages/ai-native/src/browser/index.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3499      +/-   ##
==========================================
- Coverage   56.59%   56.58%   -0.02%     
==========================================
  Files        1461     1462       +1     
  Lines       89926    89939      +13     
  Branches    18510    18510              
==========================================
- Hits        50895    50892       -3     
- Misses      35522    35538      +16     
  Partials     3509     3509              
Flag Coverage Δ
jsdom 51.88% <7.69%> (-0.02%) ⬇️
node 15.81% <7.69%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bytemain bytemain merged commit ed65cb4 into main Apr 10, 2024
11 checks passed
@bytemain bytemain deleted the feat/support-custom-chat-render branch April 10, 2024 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI 🎨 feature feature required v3 OpenSumi 3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants