Conversation communication (#165)

* init: conversation in api3 (WIP)

* feat: beta conversation

* fix: fix some problems

* fix: add help message
This commit is contained in:
ikechan8370 2023-02-18 12:33:24 +08:00 committed by GitHub
parent a1e72c7757
commit a3b14b1a79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 658 additions and 215 deletions

View file

@ -10,6 +10,10 @@ export const Config = {
blockWords: ['屏蔽词1', '屏蔽词b'],
// 改为true后全局默认以图片形式回复并自动发出Continue命令补全回答。长回复可能会有bug。
defaultUsePicture: false,
// 如果true字数大于阈值autoUsePictureThreshold会自动用图片发送即使是文本模式。
autoUsePicture: true,
// 仅当autoUsePicture为true时生效字数大于该阈值会自动用图片发送即使是文本模式。
autoUsePictureThreshold: 1200,
// 每个人发起的对话保留时长。超过这个时长没有进行对话,再进行对话将开启新的对话。单位:秒
conversationPreserveTime: 0,
// 触发方式 可选值at 或 prefix 。at模式下只有at机器人才会回复。prefix模式下不需要at但需要添加前缀#chat
@ -26,6 +30,7 @@ export const Config = {
// ***********************************************************************************************************************************
// from https://github.com/acheong08/ChatGPT
api: 'https://chatgpt.duti.tech/api/conversation',
apiBaseUrl: 'https://chatgpt.duti.tech',
// ***********************************************************************************************************************************
// 以下为API2方式的配置 *
// ***********************************************************************************************************************************
@ -60,7 +65,7 @@ export const Config = {
'2captchaToken': '',
// http或socks5代理
proxy: PROXY,
debug: false,
debug: true,
// 各个地方的默认超时时间
defaultTimeoutMs: 120000,
// bing默认超时时间bing太慢了有的时候