feat: support system message in api mode

This commit is contained in:
ikechan8370 2023-03-02 18:02:55 +08:00
parent 7dbb3ad0b5
commit 17fb123e3b
4 changed files with 137 additions and 157 deletions

View file

@ -16,11 +16,11 @@ const defaultConfig = {
apiKey: '',
drawCD: 30,
model: '',
temperature: 0.8,
api: 'https://chatgpt.duti.tech/api/conversation',
apiBaseUrl: 'https://chatgpt.duti.tech/api',
plus: false,
reverseProxy: 'https://chatgpt.pawan.krd/api/completions',
promptPrefixOverride: 'Your answer shouldn\'t be too verbose. If you are generating a list, do not have too many items. Keep the number of items short. Prefer to answer in Chinese.',
promptPrefixOverride: 'Your answer shouldn\'t be too verbose. Prefer to answer in Chinese.',
assistantLabel: 'ChatGPT',
thinkingTips: true,
username: '',
@ -33,7 +33,7 @@ const defaultConfig = {
debug: true,
defaultTimeoutMs: 120000,
chromeTimeoutMS: 120000,
version: '2.0.5'
version: '2.0.6'
}
const _path = process.cwd()
let config = {}