MCPcopy Create free account

hub / github.com/abacaj/unofficial-chatgpt-api / functions

Functions16 in github.com/abacaj/unofficial-chatgpt-api

↓ 3 callersMethod#refreshBearerToken
(force?: boolean)
src/ChatGPTClient.ts:379
↓ 3 callersMethodchat
(message: string)
src/ChatGPTClient.ts:192
↓ 3 callersFunctiongetSetCookieValue
(setCookieValue: string)
src/ChatGPTClient.ts:68
↓ 2 callersMethod#parseCookie
( response: { body: string; headers: IncomingHttpHeaders; }, refreshDate: Date, )
src/ChatGPTClient.ts:305
↓ 2 callersFunctionget
( ua: string, url: string, clearanceToken: string, sessionToken0: string, sessionToken1?: string, )
src/ChatGPTClient.ts:112
↓ 1 callersMethod#dualTokenRefresh
(refreshDate: Date)
src/ChatGPTClient.ts:353
↓ 1 callersMethod#singleTokenRefresh
(refreshDate: Date)
src/ChatGPTClient.ts:329
↓ 1 callersFunctionmain
()
example.js:4
↓ 1 callersFunctionpost
( ua: string, url: string, data: Record<string, unknown>, clearanceToken: string, bearerToken: strin
src/ChatGPTClient.ts:72
↓ 1 callersMethodreset
()
src/ChatGPTClient.ts:179
↓ 1 callersMethodstartConversation
( existingChatId?: string, )
src/ChatGPTClient.ts:289
Methodconstructor
( ua: string, clearanceToken: string, bearerToken: string, refreshBearerToken: () => Promise<s
src/ChatGPTClient.ts:164
Methodconstructor
* * @param {string} sessionToken0 __Secure-next-auth.session-token OR __Secure-next-auth.session-token.0 * @param {string} sessionToken1 __Secur
src/ChatGPTClient.ts:250
MethodgetConversationId
* * @description conversationId can be null if the conversation has not been started yet with a call to chat first
src/ChatGPTClient.ts:188
MethodgetCurrentSession
()
src/ChatGPTClient.ts:262
MethodupdateClientSession
* * @description this will force a refresh to update bearer token
src/ChatGPTClient.ts:278