Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu committed Feb 16, 2023
1 parent 91f51b6 commit 981c036
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions service/src/chatgpt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 981c036

Please sign in to comment.