Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cogentapps/chat-with-gpt
/ functions
Functions
401 in github.com/cogentapps/chat-with-gpt
⨍
Functions
401
◇
Types & classes
126
↓ 34 callers
Method
set
(bytes: Uint8Array, rank: number)
app/src/core/tokenizer/bpe.ts:21
↓ 23 callers
Method
from
(texts: string[])
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:8
↓ 23 callers
Method
get
(bytes: Uint8Array)
app/src/core/tokenizer/bpe.ts:26
↓ 21 callers
Method
getOption
(pluginID: string, optionID: string)
app/src/core/chat/y-chat.ts:93
↓ 17 callers
Method
get
* Method to get a message node from the tree by its ID. * @param {string} id - The ID of the message node to retrieve. * @returns {MessageNo
app/src/core/chat/message-tree.ts:76
↓ 17 callers
Method
get
(bytes: Uint8Array)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:21
↓ 15 callers
Function
useAppContext
()
app/src/core/context.tsx:245
↓ 14 callers
Method
from
(root: Y.Doc, id: string)
app/src/core/chat/y-chat.ts:19
↓ 14 callers
Function
useOption
(groupID: string, optionID: string, chatID?: string)
app/src/core/options/use-option.ts:5
↓ 12 callers
Method
getYChat
(id: string, expectContent = false)
app/src/core/chat/y-chat.ts:186
↓ 12 callers
Method
has
(id: string)
app/src/core/chat/y-chat.ts:207
↓ 12 callers
Method
keys
()
app/src/core/tokenizer/bpe.ts:31
↓ 11 callers
Method
post
(url: string, data: any)
app/src/core/backend.ts:263
↓ 10 callers
Method
addEventListener
( type: K, listener: ( this: SpeechRecognition, ev: Sp
app/src/core/speech-recognition-types.ts:69
↓ 10 callers
Method
get
(key: string)
server/src/object-store/s3.ts:16
↓ 9 callers
Method
from
(texts: string[])
app/src/core/tokenizer/bpe.ts:13
↓ 8 callers
Function
cacheKey
(groupID: string, optionID: string, chatID?: string | null)
app/src/core/options/index.ts:11
↓ 8 callers
Method
has
(id: string)
app/src/core/index.ts:210
↓ 7 callers
Method
all
()
app/src/core/index.ts:214
↓ 7 callers
Method
delete
(id: string)
app/src/core/search.ts:33
↓ 7 callers
Function
play
(index?: number)
app/src/core/tts/use-tts.tsx:130
↓ 7 callers
Method
set
(bytes: Uint8Array, rank: number)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:16
↓ 7 callers
Method
start
()
app/src/core/speech-recognition-types.ts:67
↓ 6 callers
Method
createTableIfNotExists
(tableName: string, tableBuilderCallback: (tableBuilder: Knex.CreateTableBuilder) => any)
server/src/database/knex.ts:68
↓ 6 callers
Method
getState
()
app/src/core/tts/direct-tts-player.ts:101
↓ 6 callers
Function
resetAudioContext
()
app/src/core/tts/audio-file-player.ts:10
↓ 5 callers
Method
delete
()
app/src/core/chat/y-chat.ts:108
↓ 5 callers
Method
encode
(text: string, allowedSpecial: Set<string>)
app/src/core/tokenizer/bpe.ts:203
↓ 5 callers
Method
get
(url: string)
app/src/core/backend.ts:252
↓ 5 callers
Method
getState
()
app/src/core/tts/audio-file-player.ts:224
↓ 5 callers
Function
isProxySupported
()
app/src/core/chat/openai.ts:9
↓ 5 callers
Function
openOpenAIApiKeyPanel
()
app/src/store/settings-ui.ts:33
↓ 5 callers
Method
serialize
* Method to serialize the message tree into an array of message nodes, excluding parent and replies properties. * @returns {Omit<MessageNode, 'pa
app/src/core/chat/message-tree.ts:180
↓ 5 callers
Method
stop
()
app/src/core/speech-recognition-types.ts:68
↓ 4 callers
Method
countExcessTokens
()
app/src/core/tokenizer/chat-history-trimmer.ts:18
↓ 4 callers
Method
describe
()
app/src/core/plugins/index.ts:12
↓ 4 callers
Method
findOption
(groupID: string, optionID: string)
app/src/core/options/index.ts:194
↓ 4 callers
Method
getAllOptions
(groupID: string, chatID?: string | null)
app/src/core/options/index.ts:103
↓ 4 callers
Method
getChatIDs
()
app/src/core/chat/y-chat.ts:211
↓ 4 callers
Method
getOption
(groupID: string, optionID: string, chatID?: string | null, validate = false)
app/src/core/options/index.ts:115
↓ 4 callers
Function
getRateLimitResetTimeFromResponse
(response: Response)
app/src/core/utils/index.ts:102
↓ 4 callers
Method
keys
()
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:26
↓ 4 callers
Function
pluginRunner
(name: string, pluginContext: (pluginID: string) => PluginContext, callback: (p: Plugin<any>) => Promise<any>)
app/src/core/plugins/plugin-runner.ts:6
↓ 4 callers
Method
resume
()
app/src/tts-plugins/web-speech.ts:105
↓ 4 callers
Function
setSourceElement
()
app/src/core/tts/use-tts.tsx:151
↓ 3 callers
Method
addMessage
* Method to add a message to the tree. If a message with the same ID already exists in the tree, this method does nothing. * @param {Message} mes
app/src/core/chat/message-tree.ts:84
↓ 3 callers
Function
bytePairEncode
(piece: Uint8Array, ranks: RankMap)
app/src/core/tokenizer/bpe.ts:71
↓ 3 callers
Function
bytePairEncode
(piece: Uint8Array, ranks: RankMap)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:66
↓ 3 callers
Function
callback
()
server/src/endpoints/base.ts:15
↓ 3 callers
Method
callback
(https = false)
server/src/index.ts:135
↓ 3 callers
Function
cloneArrayBuffer
(buffer: ArrayBuffer)
app/src/core/utils/index.ts:36
↓ 3 callers
Function
countTokens
(messages: OpenAIMessage[])
app/src/core/tokenizer/wrapper.ts:18
↓ 3 callers
Method
encodeOrdinary
(text: string)
app/src/core/tokenizer/bpe.ts:199
↓ 3 callers
Method
get
(id: string)
app/src/core/index.ts:206
↓ 3 callers
Method
getValidatedOption
(groupID: string, optionID: string, chatID?: string | null)
app/src/core/options/index.ts:152
↓ 3 callers
Method
getVoices
()
app/src/tts-plugins/web-speech.ts:54
↓ 3 callers
Function
importChat
(doc: YChatDoc, chat: Chat)
app/src/core/chat/chat-persistance.ts:31
↓ 3 callers
Method
logout
()
app/src/core/backend.ts:210
↓ 3 callers
Method
mostRecentLeaf
* Method to get the most recent leaf message in the message tree. * @returns {MessageNode | null} - The most recent leaf message, or null if the
app/src/core/chat/message-tree.ts:194
↓ 3 callers
Method
onError
(error: string)
app/src/core/chat/create-reply.ts:154
↓ 3 callers
Method
onMessageDone
(messageID: string)
app/src/core/chat/y-chat.ts:89
↓ 3 callers
Method
pause
()
app/src/core/tts/use-tts.tsx:39
↓ 3 callers
Method
processSearchResults
(searchResults: SearchResult[] | Chat[])
app/src/core/search.ts:60
↓ 3 callers
Method
reloadOptions
()
app/src/core/options/index.ts:66
↓ 3 callers
Method
resumeAudioContext
()
app/src/core/tts/audio-file-player.ts:207
↓ 3 callers
Method
sendMessage
(userSubmittedMessage: UserSubmittedMessage)
app/src/core/index.ts:136
↓ 3 callers
Function
sleep
(ms: number)
app/src/core/utils/index.ts:10
↓ 3 callers
Function
toggleSidebar
(state)
app/src/store/sidebar.ts:18
↓ 3 callers
Method
transact
(cb: () => void)
app/src/core/chat/y-chat.ts:219
↓ 2 callers
Method
_getTlRegex
()
app/src/core/tokenizer/bpe.ts:122
↓ 2 callers
Method
_getTlRegex
()
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:117
↓ 2 callers
Method
addMessage
(message: Message)
app/src/core/chat/y-chat.ts:223
↓ 2 callers
Method
attachYDoc
(username: string)
app/src/core/index.ts:60
↓ 2 callers
Function
bytePairMerge
(piece: Uint8Array, ranks: RankMap)
app/src/core/tokenizer/bpe.ts:44
↓ 2 callers
Function
bytePairMerge
(piece: Uint8Array, ranks: RankMap)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:39
↓ 2 callers
Function
closeModals
(state)
app/src/store/ui.ts:18
↓ 2 callers
Function
countTokensForMessages
(messages: OpenAIMessage[])
server/src/endpoints/service-proxies/openai/tokenizer/index.ts:47
↓ 2 callers
Function
createBasicPluginContext
(pluginID: string, pluginOptions: OptionsManager, chatID?: string | null, chat?: Chat | null)
app/src/core/plugins/plugin-context.ts:11
↓ 2 callers
Method
createHeaders
* Creates and returns the headers required for ElevenLabs API requests.
app/src/tts-plugins/elevenlabs.tsx:223
↓ 2 callers
Function
createMessageNode
(message: Message)
app/src/core/chat/message-tree.ts:18
↓ 2 callers
Method
decodeBytes
(tokens: number[])
app/src/core/tokenizer/bpe.ts:231
↓ 2 callers
Method
deleteChat
(id: string)
app/src/core/backend.ts:244
↓ 2 callers
Function
ellipsize
(text: string, maxLength: number)
app/src/core/utils/index.ts:22
↓ 2 callers
Function
getEndpoint
(proxied = false)
app/src/core/chat/openai.ts:17
↓ 2 callers
Method
getMessageChainTo
* Method to get the message chain leading to a specific message by its ID. * @param {string} messageID - The ID of the target message. * @re
app/src/core/chat/message-tree.ts:157
↓ 2 callers
Method
getMessageTree
(chatID: string)
app/src/core/chat/y-chat.ts:248
↓ 2 callers
Method
getMessagesPrecedingMessage
(chatID: string, messageID: string)
app/src/core/chat/y-chat.ts:265
↓ 2 callers
Method
getReply
(messages: Message[], requestedParameters: Parameters)
app/src/core/index.ts:166
↓ 2 callers
Method
handler
(req: express.Request, res: express.Response)
server/src/endpoints/sync.ts:15
↓ 2 callers
Function
isProxySupported
()
app/src/tts-plugins/elevenlabs.tsx:8
↓ 2 callers
Method
loadOption
(groupID: string, option: Option, yChat?: YChat)
app/src/core/options/index.ts:37
↓ 2 callers
Method
login
(username: string)
app/src/core/index.ts:53
↓ 2 callers
Method
observeChat
(id: string, yChat = this.getYChat(id))
app/src/core/chat/y-chat.ts:166
↓ 2 callers
Function
openLoginModal
(state)
app/src/store/ui.ts:12
↓ 2 callers
Function
openSignupModal
(state)
app/src/store/ui.ts:15
↓ 2 callers
Method
postprocessModelOutput
(message: OpenAIMessage, context: OpenAIMessage[], parameters: Parameters, done: boolean)
app/src/core/plugins/index.ts:27
↓ 2 callers
Method
purgeDeletedValues
()
app/src/core/chat/y-chat.ts:120
↓ 2 callers
Method
query
(query: string)
app/src/core/search.ts:40
↓ 2 callers
Function
runChatTrimmer
( messages: OpenAIMessage[], options: ChatHistoryTrimmerOptions )
app/src/core/tokenizer/wrapper.ts:11
↓ 2 callers
Method
searchChats
(query: string)
app/src/core/index.ts:223
next →
1–100 of 401, ranked by callers