Skip to content

Commit

Permalink
Merge pull request #244 from sunshanpeng/feat/room-conversation
Browse files Browse the repository at this point in the history
feat: everyone in every room  have their own session
  • Loading branch information
fuergaosi233 authored Dec 11, 2022
2 parents 9e10ae7 + 29f5afa commit 8d2a3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chatgpt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export class ChatGPTBot {
text: string,
room: RoomInterface
) {
const talkerId = talker.id;
const talkerId = room.id + talker.id;
const gptMessage = await this.getGPTMessage(text, talkerId);
const result = `${text}\n ------\n ${gptMessage}`;
await this.trySay(room, result);
Expand Down

0 comments on commit 8d2a3e7

Please sign in to comment.