diff --git a/service/src/chatgpt.ts b/service/src/chatgpt.ts index 1843e73..c3fca55 100644 --- a/service/src/chatgpt.ts +++ b/service/src/chatgpt.ts @@ -3,6 +3,11 @@ import 'isomorphic-fetch' import type { ChatGPTAPI, SendMessageOptions } from 'chatgpt' import { sendResponse } from './utils' +export interface ChatContext { + conversationId?: string + parentMessageId?: string +} + dotenv.config() const apiKey = process.env.OPENAI_API_KEY