Skip to content

Commit 50c3b73

Browse files
Add updates from PR #31 to TODO.md
1 parent 536c37b commit 50c3b73

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

TODO.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@
44
- Right now, there is no FROM field being sent from the ui.
55
- Make the server/chat/gpt3 code chat history generic, don't assume a phone number
66
- Add a way to reset the chat history from the ui chat client
7+
- Modify [src/pages/api/chat.ts](https://github.com/promptable/chat-bot-starter/blob/main/src/pages/api/chat.ts)
8+
- Import `getReply` function from `src/server/chat/gpt3`
9+
- Use `getReply` function with arguments `userId` and `messageText` to get the reply
10+
- If there is no previous message, return the reply JSON
11+
- If there is a previous message, determine the empathy of the message
12+
- Modify [src/server/chat/gpt3.ts](https://github.com/promptable/chat-bot-starter/blob/main/src/server/chat/gpt3.ts)
13+
- Write related functions for handling chat history management and response generation
14+
- Define the main `getReply` function for generating responses given a userId and message
15+

0 commit comments

Comments
 (0)