File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments