From 981c036542663107aa1aa24261abdc7689698b47 Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Thu, 16 Feb 2023 08:23:31 +0800 Subject: [PATCH] fix: type error --- service/src/chatgpt.ts | 5 +++++ 1 file changed, 5 insertions(+) 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