File tree 3 files changed +14
-13
lines changed
3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 1
1
chatGPTAccountPool:
2
2
- email: email
3
3
password: password
4
+ isGoogleLogin: false
4
5
chatPrivateTiggerKeyword: ""
5
6
openAIProxy: ""
Original file line number Diff line number Diff line change @@ -63,20 +63,19 @@ export class ChatGPTPool {
63
63
this . conversationsPool . delete ( talkid ) ;
64
64
}
65
65
async startPools ( ) {
66
- const chatGPTPools = await Promise . all (
67
- config . chatGPTAccountPool . map ( async ( account ) => {
68
- const chatGpt = new ChatGPTAPIBrowser ( {
69
- ...account ,
70
- proxyServer : config . openAIProxy ,
71
- } ) ;
72
- await chatGpt . initSession ( ) ;
73
- return {
74
- chatGpt : chatGpt ,
75
- account : account ,
76
- } ;
77
- } )
66
+ this . chatGPTPools = await Promise . all (
67
+ config . chatGPTAccountPool . map ( async ( account ) => {
68
+ const chatGpt = new ChatGPTAPIBrowser ( {
69
+ ...account ,
70
+ proxyServer : config . openAIProxy ,
71
+ } ) ;
72
+ await chatGpt . initSession ( ) ;
73
+ return {
74
+ chatGpt : chatGpt ,
75
+ account : account ,
76
+ } ;
77
+ } )
78
78
) ;
79
- this . chatGPTPools = chatGPTPools ;
80
79
if ( this . chatGPTPools . length === 0 ) {
81
80
throw new Error ( "⚠️ No chatgpt account in pool" ) ;
82
81
}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { ChatGPTAPIBrowser } from "chatgpt";
2
2
export interface AccountWithUserInfo {
3
3
password : string ;
4
4
email : string ;
5
+ isGoogleLogin : boolean ;
5
6
}
6
7
7
8
// Account will be one in the session token or email and password
You can’t perform that action at this time.
0 commit comments