mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
feat: conversation preserve duration
This commit is contained in:
parent
fc715e302e
commit
5e28722601
2 changed files with 8 additions and 8 deletions
|
|
@ -24,7 +24,7 @@ const converter = new showdown.Converter({
|
|||
* 单位:秒
|
||||
* @type {number}
|
||||
*/
|
||||
const CONVERSATION_PRESERVE_TIME = 600
|
||||
const CONVERSATION_PRESERVE_TIME = Config.conversationPreserveTime
|
||||
|
||||
mjAPI.config({
|
||||
MathJax: {
|
||||
|
|
|
|||
|
|
@ -4,24 +4,24 @@ const SESSION_TOKEN = ''
|
|||
// CFtoken,每小时刷新一般不用填
|
||||
const CF_CLEARANCE = ''
|
||||
|
||||
const PROXY = ''
|
||||
const PROXY = 'http://127.0.0.1:7890'
|
||||
|
||||
export const Config = {
|
||||
token: SESSION_TOKEN,
|
||||
cfClearance: CF_CLEARANCE,
|
||||
proxy: PROXY,
|
||||
username: '',
|
||||
password: '',
|
||||
username: 'geyinchi@foxmail.com',
|
||||
password: 'Aa699008',
|
||||
// 改为true后,全局默认以图片形式回复,并自动发出Continue命令补全回答
|
||||
defaultUsePicture: true,
|
||||
defaultUsePicture: false,
|
||||
// 每个人发起的对话保留时长。超过这个时长没有进行对话,再进行对话将开启新的对话。单位:秒
|
||||
// conversationPreserveTime: 600,
|
||||
conversationPreserveTime: 0,
|
||||
// UA: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
|
||||
// 服务器无interface的话只能用true,但是可能遇到验证码就一定要配置下面的2captchaToken了
|
||||
// true时使用无头模式,无界面的服务器可以为true,但遇到验证码时可能无法使用。
|
||||
headless: false,
|
||||
// 为空使用默认puppeteer的chromium,也可以传递自己本机安装的Chrome可执行文件地址,提高通过率
|
||||
chromePath: '',
|
||||
chromePath: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe',
|
||||
// 可注册2captcha实现跳过验证码,收费服务但很便宜。否则需要手点
|
||||
'2captchaToken': ''
|
||||
'2captchaToken': '43ea84056638820040af89d03910bb97'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue