Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save christopherbauer/db9a41f2791b7d7c20a5a68c462669f0 to your computer and use it in GitHub Desktop.
Save christopherbauer/db9a41f2791b7d7c20a5a68c462669f0 to your computer and use it in GitHub Desktop.
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