MCPcopy Create free account

hub / github.com/ourongxing/chatgpt-vercel / functions

Functions94 in github.com/ourongxing/chatgpt-vercel

↓ 6 callersFunctionord
(x: string)
src/utils/tokens/tokenizer.ts:13
↓ 5 callersFunctionloadSession
(id: string)
src/store.ts:218
↓ 4 callersFunctioncopyToClipboard
(text: string)
src/utils/index.ts:5
↓ 4 callersFunctiongetSession
(id: string)
src/utils/storage.ts:3
↓ 4 callersFunctionrange
(x: number, y: number)
src/utils/tokens/tokenizer.ts:8
↓ 4 callersFunctionsplitKeys
(keys: string)
src/utils/index.ts:76
↓ 3 callersFunctioncountTokensDollar
( tokens: number, model: Model, io: "input" | "output" )
src/store.ts:290
↓ 3 callersFunctioncountTokensInWorker
(content: string)
src/wokers/index.ts:7
↓ 3 callersFunctionfetchBilling
(key: string)
src/routes/api/index.ts:177
↓ 3 callersFunctiongenBillingsTable
(billings: Billing[])
src/routes/api/index.ts:231
↓ 3 callersFunctiongenerateId
()
src/utils/index.ts:110
↓ 3 callersFunctionsendMessage
(value?: string, fakeRole?: FakeRoleUnion)
src/components/Chat/index.tsx:73
↓ 3 callersFunctionsetSuitableheight
()
src/components/Chat/InputBox.tsx:50
↓ 3 callersFunctionshownTokens
(token: number)
src/components/Chat/MessageContainer.tsx:43
↓ 2 callersFunctionarchiveCurrentMessage
()
src/components/Chat/index.tsx:53
↓ 2 callersFunctiondateFormat
(date: Date, fmt = "YYYY-mm-dd HH:MM")
src/utils/index.ts:54
↓ 2 callersFunctiondownloadIMG
()
src/components/Chat/SettingAction.tsx:405
↓ 2 callersFunctionextractLang
(info: string)
src/markdown-it/preWrapper.ts:24
↓ 2 callersFunctionformatDate
(date: any)
src/routes/api/index.ts:178
↓ 2 callersFunctionisMobile
()
src/utils/index.ts:50
↓ 2 callersFunctionpush
(title: string, desp?: string)
src/routes/api/cron.ts:60
↓ 2 callersFunctionredirect
()
src/routes/session/[session].tsx:12
↓ 2 callersFunctionrenderMarkdownInWorker
(content: string)
src/wokers/index.ts:22
↓ 2 callersFunctionsetSession
(id: string, data: Session)
src/utils/storage.ts:13
↓ 1 callersFunctionadapter
()
vite.config.ts:19
↓ 1 callersFunctionchr
(n: number)
src/utils/tokens/tokenizer.ts:17
↓ 1 callersFunctionclearSession
()
src/components/Chat/SettingAction.tsx:47
↓ 1 callersFunctioncopy
()
src/components/Chat/MessageItem.tsx:31
↓ 1 callersFunctioncountTokens
(text: string)
src/utils/tokens/index.ts:23
↓ 1 callersMethoddecodeUtf8
(bytes: Uint8Array)
src/utils/tokens/index.ts:18
↓ 1 callersFunctiondelSession
(id: string)
src/utils/storage.ts:17
↓ 1 callersMethodencodeUtf8
(text: string)
src/utils/tokens/index.ts:14
↓ 1 callersFunctionexportJpg
()
src/components/Chat/SettingAction.tsx:399
↓ 1 callersFunctionexportMD
(messages: ChatMessage[])
src/components/Chat/SettingAction.tsx:433
↓ 1 callersFunctionfetchAllSessions
()
src/utils/storage.ts:21
↓ 1 callersFunctionfetchGPT
(messages: ChatMessage[])
src/components/Chat/index.tsx:160
↓ 1 callersFunctionfetchWithTimeout
( input: RequestInfo | URL, init?: (RequestInit & { timeout?: number }) | undefined )
src/utils/index.ts:94
↓ 1 callersFunctionhandleInput
()
src/components/Chat/InputBox.tsx:120
↓ 1 callersFunctionparsePrompts
()
src/utils/parse.ts:4
↓ 1 callersFunctionrandomKey
(keys: string[])
src/utils/index.ts:83
↓ 1 callersFunctionscrollTo
(selector: string, yOffset = 0)
src/components/Header.tsx:24
↓ 1 callersFunctionshownTokens
(token: number)
src/components/Chat/InputBox.tsx:137
↓ 1 callersFunctionsplitEmoji
(text: string)
src/components/Header.tsx:7
↓ 1 callersFunctiontoggle
(flag: boolean)
src/components/ThemeToggle.tsx:7
↓ 1 callersFunctionuseCopyCode
()
src/hooks/index.ts:5
FunctionActionItem
(props: { onClick: any; icon: string; label?: string })
src/components/Chat/SettingAction.tsx:386
FunctionActionItem
(props: { onClick: any; icon: string; label?: string })
src/components/Chat/MessageAction.tsx:40
FunctionGET
()
src/routes/api/cron.ts:38
FunctionHeader
()
src/components/Header.tsx:30
FunctionItem
(props: { option: Option select(k?: Option): void hover: boolean })
src/components/Chat/SlashSelector.tsx:83
FunctionMessageAction
({ role, edit, del, copy, reAnswer }: { role: Role edit: () => void del: () => void copy: ()
src/components/Chat/MessageAction.tsx:4
FunctionMessageItem
(props: Props)
src/components/Chat/MessageItem.tsx:20
FunctionNotFound
()
src/routes/[...404].tsx:3
FunctionPOST
({ request }: APIEvent)
src/routes/api/index.ts:53
FunctionPromptList
(props: { options: Option[] select(k?: Option): void })
src/components/Chat/SlashSelector.tsx:14
FunctionRoot
()
src/root.tsx:24
FunctionSelector
(props: { onChange?: (e: Event) => void options: { value: string; label: string }[] value: string clas
src/components/Common.tsx:21
FunctionSettingAction
()
src/components/Chat/SettingAction.tsx:44
FunctionSettingItem
(props: { children: JSXElement icon: string label: string })
src/components/Chat/SettingAction.tsx:370
FunctionStore
()
src/store.ts:98
FunctionSwitch
(props: { checked: boolean onChange?: (e: Event) => void class?: string })
src/components/Common.tsx:3
FunctionThemeToggle
()
src/components/ThemeToggle.tsx:5
Functionbpe
(token: string)
src/utils/tokens/tokenizer.ts:133
FunctionbytesToUnicode
()
src/utils/tokens/tokenizer.ts:96
FunctionclickOutside
(el: Element, accessor: Accessor<any>)
src/hooks/index.ts:34
Functionconstructor
(options: { type: "gpt3" | "codex" })
src/utils/tokens/tokenizer.ts:35
Methodconstructor
(options: { type: "gpt3" | "codex" })
src/utils/tokens/index.ts:7
FunctioncontextToken$
()
src/store.ts:114
FunctioncurrentMessageToken$
()
src/store.ts:117
FunctioncurrentModel
()
src/store.ts:126
Functiondecode
(tokens: number[])
src/utils/tokens/tokenizer.ts:227
Functiondel
()
src/components/Chat/MessageItem.tsx:39
Functionedit
()
src/components/Chat/MessageItem.tsx:35
Functionencode
(text: string)
src/utils/tokens/tokenizer.ts:203
FunctionexportData
()
src/components/Chat/SettingAction.tsx:453
FunctionextractTitle
(info: string)
src/markdown-it/preWrapper.ts:20
FunctiongetPairs
(word: string[])
src/utils/tokens/tokenizer.ts:120
FunctionhandleToggleTheme
()
src/components/ThemeToggle.tsx:18
Functionhandler
(e: MessageEvent)
src/wokers/index.ts:12
FunctionimportData
()
src/components/Chat/SettingAction.tsx:462
Functioninitialize
()
src/utils/tokens/tokenizer.ts:48
FunctioninputContentToken$
()
src/store.ts:120
FunctionisEmoji
(character: string)
src/utils/index.ts:119
FunctionlockMessage
()
src/components/Chat/MessageItem.tsx:76
FunctiononClick
(e: any)
src/hooks/index.ts:35
FunctionpreWrapperPlugin
(md: MarkdownIt)
src/markdown-it/preWrapper.ts:3
FunctionreAnswer
()
src/components/Chat/MessageItem.tsx:54
FunctionremainingToken
()
src/store.ts:123
FunctionselectOption
(option?: Option)
src/components/Chat/InputBox.tsx:75
Functionstart
(controller)
src/routes/api/index.ts:131
FunctionstopStreamFetch
()
src/components/Chat/index.tsx:66
FunctionstreamParser
(event: ParsedEvent | ReconnectInterval)
src/routes/api/index.ts:132
FunctionvalidContext
()
src/store.ts:111
Functionzip
(result: Map<X, Y>, x: X[], y: Y[])
src/utils/tokens/tokenizer.ts:88