Skip to content

Commit

Permalink
fix: message 转为可写
Browse files Browse the repository at this point in the history
  • Loading branch information
Herobrine-ymf committed Mar 31, 2023
1 parent e4dba27 commit 1cb1afe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/src/chatgpt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ let api: ChatGPTAPI | ChatGPTUnofficialProxyAPI
})()

async function chatReplyProcess(options: RequestOptions) {
const { message, lastContext, process, systemMessage } = options
const { lastContext, process, systemMessage } = options
let message = options.message
try {
if (message.startsWith('/') && message.slice(message.length - 5) === '11514') {
message = message.slice(1, message.length - 5)
Expand Down

0 comments on commit 1cb1afe

Please sign in to comment.