kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
feat: 发送token 排除系统消息
rodzic
ff79d8bd13
commit
ff34ff6ffc
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@catalystclan/chatgpt-api",
|
||||
"version": "5.2.4-beta.0",
|
||||
"version": "5.2.4-beta.1",
|
||||
"description": "Node.js client for the official ChatGPT API.",
|
||||
"author": "Travis Fischer <travis@transitivebullsh.it>",
|
||||
"repository": "transitive-bullshit/chatgpt-api",
|
||||
|
|
|
@ -396,6 +396,7 @@ export class ChatGPTAPI {
|
|||
.reduce((prompt, message) => {
|
||||
switch (message.role) {
|
||||
case 'system':
|
||||
return prompt
|
||||
// return prompt.concat([`Instructions:\n${message.content}`])
|
||||
case 'user':
|
||||
return prompt.concat([`${userLabel}:\n${message.content}`])
|
||||
|
|
Ładowanie…
Reference in New Issue