mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
feat: support system message in api mode
This commit is contained in:
parent
7dbb3ad0b5
commit
17fb123e3b
4 changed files with 137 additions and 157 deletions
|
|
@ -39,6 +39,7 @@ export default {
|
|||
// 模型名称,选填。如无特殊需求保持默认即可,会使用chatgpt-api库提供的当前可用的最适合的默认值。保底可用的是 text-davinci-003。当发现新的可用的chatGPT模型会更新这里的值
|
||||
// 20230211: text-chat-davinci-002-sh-alpha-aoruigiofdj83 中午存活了几分钟
|
||||
// model: '',
|
||||
// temperature: 0.8,
|
||||
// ***********************************************************************************************************************************
|
||||
// 以下为API3方式的配置 *
|
||||
// ***********************************************************************************************************************************
|
||||
|
|
@ -48,16 +49,6 @@ export default {
|
|||
// 或者 https://gpt.pawan.krd/backend-api
|
||||
// apiBaseUrl: 'https://chatgpt.duti.tech/api',
|
||||
// ***********************************************************************************************************************************
|
||||
// 以下为API2方式的配置 *
|
||||
// ***********************************************************************************************************************************
|
||||
// 如果购买了plus,改为true将使用收费模型,响应更快
|
||||
// plus: false,
|
||||
// 使用谁提供的第三方API。github开源的有几个,没特别要求保持默认就好
|
||||
// https://chatgpt.pawan.krd/api/completions 来自https://github.com/PawanOsman 使用Cloudflare CDN,三网延迟可能都较高。目前看起来最稳定
|
||||
// https://chatgpt.roki.best/api/completions 对上面那个的二次反代,搭建在Hong Kong(本人自建,不保证稳定性)
|
||||
// https://chatgpt.hato.ai/completions 来自https://github.com/waylaidwanderer(本插件使用的chatgpt库之一的作者)
|
||||
// reverseProxy: 'https://chatgpt.pawan.krd/api/completions',
|
||||
// ***********************************************************************************************************************************
|
||||
// 以下为API/API2方式公用的配置 *
|
||||
// ***********************************************************************************************************************************
|
||||
// 给模型的前言promt。选填。默认完整值:`You are ${this._assistantLabel}, a large language model trained by OpenAI. You answer as concisely as possible for each response (e.g. don’t be verbose). It is very important that you answer as concisely as possible, so please remember this. If you are generating a list, do not have too many items. Keep the number of items short. Current date: ${currentDate}\n\n
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue