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

refactor: chat service & support sendReplyMessage api #3539

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

Ricbet
Copy link
Member

@Ricbet Ricbet commented Apr 15, 2024

Types

  • 🎉 New Features
  • 🪚 Refactors

Background or solution

  • 重构 ChatService ,区分出 chat internal service 和 chat api service
  • 新增 sendReplyMessage 方法,能主动以 ai role 的身份发送 reply 消息

Changelog

@Ricbet Ricbet added the AI label Apr 15, 2024
@Ricbet Ricbet requested review from erha19 and bytemain April 15, 2024 06:03
@Ricbet Ricbet self-assigned this Apr 15, 2024
Copy link

railway-app bot commented Apr 15, 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 ⚙️ refactor Refactor code label Apr 15, 2024
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

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

Project coverage is 56.50%. Comparing base (83d9d25) to head (35839ea).

Files Patch % Lines
...ges/ai-native/src/browser/chat/chat.api.service.ts 0.00% 14 Missing ⚠️
...s/ai-native/src/browser/chat/chat-agent.service.ts 0.00% 3 Missing ⚠️
packages/ai-native/src/browser/index.ts 0.00% 3 Missing ⚠️
...i-native/src/browser/chat/chat.internal.service.ts 0.00% 1 Missing ⚠️
packages/ai-native/src/node/index.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3539      +/-   ##
==========================================
- Coverage   56.51%   56.50%   -0.02%     
==========================================
  Files        1482     1483       +1     
  Lines       90364    90376      +12     
  Branches    18582    17551    -1031     
==========================================
- Hits        51069    51066       -3     
- Misses      35762    39287    +3525     
+ Partials     3533       23    -3510     
Flag Coverage Δ
jsdom 51.82% <12.00%> (-0.02%) ⬇️
node 15.76% <8.00%> (+<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.

@Ricbet Ricbet changed the title refactor: chat service & support sendReplyMessage api WIP: refactor: chat service & support sendReplyMessage api Apr 15, 2024
@Ricbet Ricbet changed the title WIP: refactor: chat service & support sendReplyMessage api refactor: chat service & support sendReplyMessage api Apr 15, 2024
@Ricbet Ricbet merged commit 8938d69 into main Apr 15, 2024
13 checks passed
@Ricbet Ricbet deleted the refactor/chat-service branch April 15, 2024 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants