Created
May 19, 2024 14:14
-
-
Save christopherbauer/1ef44c8b8d73717d33ea8b25dd796108 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class ChatGptConversationService { | |
/* ... */ | |
deleteConversation = (id: string) => { | |
if (id in ConversationStorage) { | |
delete ConversationStorage[id]; | |
return Promise.resolve(true); | |
} | |
return Promise.resolve(false); | |
}; | |
/* ... */ | |
} | |
export class InMemoryConversationService implements ConversationService { | |
/* ... */ | |
return this.chatgpt.deleteConversation(id); | |
/* ... */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment