mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
feat: support stream debug log
This commit is contained in:
parent
7ca35836bf
commit
b9f45c2052
1 changed files with 7 additions and 1 deletions
|
|
@ -1876,7 +1876,13 @@ export class chatgpt extends plugin {
|
|||
this.chatGPTApi = new ChatGPTAPI(opts)
|
||||
let option = {
|
||||
timeoutMs: 120000,
|
||||
completionParams
|
||||
completionParams,
|
||||
stream: true,
|
||||
onProgress: (data) => {
|
||||
if (Config.debug) {
|
||||
logger.info(data?.text || data.functionCall || data)
|
||||
}
|
||||
}
|
||||
// systemMessage: promptPrefix
|
||||
}
|
||||
option.systemMessage = system
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue