Created
May 18, 2024 16:59
-
-
Save christopherbauer/db9a41f2791b7d7c20a5a68c462669f0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import { personas } from "../persona"; | |
import { ChatGptConversationService } from "./chatgpt"; | |
import {Conversation, ConversationList, ConversationListEntry, ConversationService, Message } from "./types"; | |
/* | |
* Should only be instantiated once for this app due to it being used in-memory rather than synced to a store | |
*/ | |
export class InMemoryConversationService implements ConversationService { | |
chatgpt: ChatGptConversationService; | |
constructor() { | |
this.chatgpt = new ChatGptConversationService(); | |
} | |
/** ... **/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment