Skip to content

Commit

Permalink
fix: default scheme to be PM Kisan
Browse files Browse the repository at this point in the history
  • Loading branch information
techsavvyash committed Jun 13, 2024
1 parent c70c1d8 commit daf4506
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ BFF aims to simplify the development process by providing a robust and extensibl
### Deployment
- [Deployment steps](https://github.com/AgrI-Mitra/docs/blob/main/deployment.md)


along with all existing params only 1 additional param: scheme_name
Possiible scheme names: ['PM Kisan', 'Kisan Credit Card', 'PM Fasal Bima Yojana'] ==> scheme names that are displayed on the top right corner of the chatbot.

Once the Backend team starts sending scheme_name to WAI API, send only the original user query. Don't append it by the scheme name that we were doing till now.
5 changes: 4 additions & 1 deletion src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ export class AppController {
lastAadhaarDigits: "",
state: "onGoing",
isOTPVerified: false,
schemeName: promptDto.schemeName,
schemeName:
promptDto.schemeName && promptDto.schemeName.trim() !== ""
? promptDto.schemeName
: "PM Kisan",
};

let conversation = await this.conversationService.getConversationState(
Expand Down

0 comments on commit daf4506

Please sign in to comment.