Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abacaj/unofficial-chatgpt-api
/ functions
Functions
16 in github.com/abacaj/unofficial-chatgpt-api
⨍
Functions
16
◇
Types & classes
4
↓ 3 callers
Method
#refreshBearerToken
(force?: boolean)
src/ChatGPTClient.ts:379
↓ 3 callers
Method
chat
(message: string)
src/ChatGPTClient.ts:192
↓ 3 callers
Function
getSetCookieValue
(setCookieValue: string)
src/ChatGPTClient.ts:68
↓ 2 callers
Method
#parseCookie
( response: { body: string; headers: IncomingHttpHeaders; }, refreshDate: Date, )
src/ChatGPTClient.ts:305
↓ 2 callers
Function
get
( ua: string, url: string, clearanceToken: string, sessionToken0: string, sessionToken1?: string, )
src/ChatGPTClient.ts:112
↓ 1 callers
Method
#dualTokenRefresh
(refreshDate: Date)
src/ChatGPTClient.ts:353
↓ 1 callers
Method
#singleTokenRefresh
(refreshDate: Date)
src/ChatGPTClient.ts:329
↓ 1 callers
Function
main
()
example.js:4
↓ 1 callers
Function
post
( ua: string, url: string, data: Record<string, unknown>, clearanceToken: string, bearerToken: strin
src/ChatGPTClient.ts:72
↓ 1 callers
Method
reset
()
src/ChatGPTClient.ts:179
↓ 1 callers
Method
startConversation
( existingChatId?: string, )
src/ChatGPTClient.ts:289
Method
constructor
( ua: string, clearanceToken: string, bearerToken: string, refreshBearerToken: () => Promise<s
src/ChatGPTClient.ts:164
Method
constructor
* * @param {string} sessionToken0 __Secure-next-auth.session-token OR __Secure-next-auth.session-token.0 * @param {string} sessionToken1 __Secur
src/ChatGPTClient.ts:250
Method
getConversationId
* * @description conversationId can be null if the conversation has not been started yet with a call to chat first
src/ChatGPTClient.ts:188
Method
getCurrentSession
()
src/ChatGPTClient.ts:262
Method
updateClientSession
* * @description this will force a refresh to update bearer token
src/ChatGPTClient.ts:278