Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@
- Right now, there is no FROM field being sent from the ui.
- Make the server/chat/gpt3 code chat history generic, don't assume a phone number
- Add a way to reset the chat history from the ui chat client
- Modify [src/pages/api/chat.ts](https://github.com/promptable/chat-bot-starter/blob/main/src/pages/api/chat.ts)
- Import `getReply` function from `src/server/chat/gpt3`
- Use `getReply` function with arguments `userId` and `messageText` to get the reply
- If there is no previous message, return the reply JSON
- If there is a previous message, determine the empathy of the message
- Modify [src/server/chat/gpt3.ts](https://github.com/promptable/chat-bot-starter/blob/main/src/server/chat/gpt3.ts)
- Write related functions for handling chat history management and response generation
- Define the main `getReply` function for generating responses given a userId and message