mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: null option
This commit is contained in:
parent
87cc56e289
commit
548642dab9
2 changed files with 7 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ import mjAPI from 'mathjax-node'
|
|||
import { uuid } from 'oicq/lib/common.js'
|
||||
import delay from 'delay'
|
||||
import { ChatGPTAPI } from 'chatgpt'
|
||||
import { ChatGPTClient, BingAIClient } from '@waylaidwanderer/chatgpt-api'
|
||||
import { ChatGPTClient, BingAIClient } from '@waylaidwanderer/chatgpt-api'
|
||||
import { getMessageById, tryTimes, upsertMessage } from '../utils/common.js'
|
||||
import { ChatGPTPuppeteer } from '../utils/browser.js'
|
||||
import { KeyvFile } from 'keyv-file'
|
||||
|
|
@ -336,7 +336,11 @@ export class chatgpt extends plugin {
|
|||
}
|
||||
|
||||
async sendMessage (prompt, conversation = {}, use) {
|
||||
conversation.timeoutMs = 120000
|
||||
if (!conversation) {
|
||||
conversation = {
|
||||
timeoutMs: 120000
|
||||
}
|
||||
}
|
||||
// console.log(use)
|
||||
if (use === 'browser') {
|
||||
return await this.chatgptBrowserBased(prompt, conversation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue