mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-07-21 11:57:47 +00:00
fix: type error
This commit is contained in:
@@ -3,6 +3,11 @@ import 'isomorphic-fetch'
|
|||||||
import type { ChatGPTAPI, SendMessageOptions } from 'chatgpt'
|
import type { ChatGPTAPI, SendMessageOptions } from 'chatgpt'
|
||||||
import { sendResponse } from './utils'
|
import { sendResponse } from './utils'
|
||||||
|
|
||||||
|
export interface ChatContext {
|
||||||
|
conversationId?: string
|
||||||
|
parentMessageId?: string
|
||||||
|
}
|
||||||
|
|
||||||
dotenv.config()
|
dotenv.config()
|
||||||
|
|
||||||
const apiKey = process.env.OPENAI_API_KEY
|
const apiKey = process.env.OPENAI_API_KEY
|
||||||
|
Reference in New Issue
Block a user