-
Notifications
You must be signed in to change notification settings - Fork 1
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
Integration of LangChain into the Discord Bot Service #19
base: develop
Are you sure you want to change the base?
Conversation
PR Analysis
PR Feedback
How to use
|
Codecov ReportPatch coverage:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #19 +/- ##
===========================================
+ Coverage 23.96% 25.32% +1.35%
===========================================
Files 48 58 +10
Lines 2128 2263 +135
Branches 357 370 +13
===========================================
+ Hits 510 573 +63
- Misses 1600 1672 +72
Partials 18 18
☔ View full report in Codecov by Sentry. |
21f0d5a
to
639b9a8
Compare
/describe |
639b9a8
to
14e70f3
Compare
14e70f3
to
84243bb
Compare
PR Type:
Enhancement
PR Description:
This pull request focuses on integrating LangChain into the Discord Bot Service. It includes modifications to the message handling in the Discord Bot Service, changes to the ChatGPTController, and the addition of a new NestLangChainModule. The changes aim to enhance the bot's capabilities by enabling it to process and respond to different types of messages and attachments more effectively.
PR Main Files Walkthrough:
apps/yggdrasil-discord-client/src/app/discord-bot/discord-bot.service.ts
: The message handling logic has been significantly refactored. The new implementation uses RxJS operators to process the incoming messages in a more streamlined and efficient manner. It also includes additional checks and conditions to handle different types of messages and attachments.apps/yggdrasil-core-engine/src/app/controllers/chatgpt/chatgpt.controller.ts
: The ChatGPTController has been updated to remove the use of ServerUnaryCall and Metadata parameters in the methods. The AuthGuard decorator has been moved to the class level, applying it to all methods in the controller.libs/nest-langchain/src/lib/nest-langchain.module.ts
: This is a new file that introduces the NestLangChainModule. This module provides the NestLangchainService and includes methods for registering asynchronous providers. It is part of the integration of LangChain into the service.