mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
fix: add more debug log
This commit is contained in:
parent
877b91c765
commit
a94017e6e5
4 changed files with 21 additions and 14 deletions
|
|
@ -175,7 +175,7 @@ export class ChatGPTAPI {
|
|||
opts,
|
||||
completionParams
|
||||
)
|
||||
|
||||
console.log(`maxTokens: ${maxTokens}, numTokens: ${numTokens}`)
|
||||
const result: types.ChatMessage = {
|
||||
role: 'assistant',
|
||||
id: uuidv4(),
|
||||
|
|
@ -199,7 +199,9 @@ export class ChatGPTAPI {
|
|||
messages,
|
||||
stream
|
||||
}
|
||||
|
||||
if (this._debug) {
|
||||
console.log(JSON.stringify(body))
|
||||
}
|
||||
// Support multiple organizations
|
||||
// See https://platform.openai.com/docs/api-reference/authentication
|
||||
if (this._apiOrg) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue