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
↓ 2 callers
Function
setComplete
()
app/src/core/tts/use-tts.tsx:152
↓ 2 callers
Method
setMessageContent
(messageID: string, value: string)
app/src/core/chat/y-chat.ts:80
↓ 2 callers
Method
setOption
(pluginID: string, optionID: string, value: any)
app/src/core/chat/y-chat.ts:98
↓ 2 callers
Method
setOption
(groupID: string, optionID: string, value: any, chatID?: string | null)
app/src/core/options/index.ts:156
↓ 2 callers
Function
shouldUseProxy
(apiKey: string | undefined | null)
app/src/core/chat/openai.ts:13
↓ 2 callers
Method
signIn
()
app/src/core/backend.ts:202
↓ 2 callers
Method
speak
(text: string, voice?: Voice)
app/src/core/tts/direct-tts-plugin.ts:5
↓ 2 callers
Method
suspendAudioContext
()
app/src/core/tts/audio-file-player.ts:216
↓ 2 callers
Function
update
()
app/src/core/tts/use-tts.tsx:110
↓ 2 callers
Method
update
(id: string)
app/src/core/search.ts:15
↓ 2 callers
Function
useTTS
()
app/src/core/tts/use-tts.tsx:155
↓ 1 callers
Method
_decodeNative
(tokens: number[])
app/src/core/tokenizer/bpe.ts:130
↓ 1 callers
Method
_decodeNative
(tokens: number[])
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:125
↓ 1 callers
Method
_encodeNative
(text: string, allowedSpecial: Set<string>)
app/src/core/tokenizer/bpe.ts:155
↓ 1 callers
Method
_encodeNative
(text: string, allowedSpecial: Set<string>)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:150
↓ 1 callers
Method
_encodeOrdinaryNative
(text: string)
app/src/core/tokenizer/bpe.ts:139
↓ 1 callers
Method
_encodeOrdinaryNative
(text: string)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:134
↓ 1 callers
Method
_getTlSpecialRegex
()
app/src/core/tokenizer/bpe.ts:126
↓ 1 callers
Method
_getTlSpecialRegex
()
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:121
↓ 1 callers
Method
abort
()
app/src/core/speech-recognition-types.ts:66
↓ 1 callers
Method
addMessages
* Method to add multiple messages to the tree. * @param {Message[]} messages - An array of messages to add to the tree.
app/src/core/chat/message-tree.ts:126
↓ 1 callers
Method
applyYUpdate
(update: Uint8Array)
app/src/core/index.ts:118
↓ 1 callers
Function
basicHandler
(req: express.Request, res: express.Response)
server/src/endpoints/service-proxies/openai/basic.ts:5
↓ 1 callers
Function
bootstrapApplication
()
app/src/index.tsx:62
↓ 1 callers
Function
cancel
()
app/src/core/tts/use-tts.tsx:136
↓ 1 callers
Method
cancel
()
app/src/core/tts/use-tts.tsx:40
↓ 1 callers
Method
cancelReply
(chatID: string | undefined, id: string)
app/src/core/index.ts:197
↓ 1 callers
Function
closeSettingsUI
()
app/src/store/settings-ui.ts:28
↓ 1 callers
Function
compareUint8Array
(a: Uint8Array, b: Uint8Array)
app/src/core/utils/index.ts:49
↓ 1 callers
Function
configureAuth0
(context: ChatServer)
server/src/auth0.ts:18
↓ 1 callers
Function
configurePassport
(context: ChatServer)
server/src/passport.ts:12
↓ 1 callers
Function
countTokensForMessage
(message: OpenAIMessage)
app/src/core/tokenizer/index.ts:40
↓ 1 callers
Function
countTokensForMessage
(message: OpenAIMessage)
server/src/endpoints/service-proxies/openai/tokenizer/index.ts:43
↓ 1 callers
Function
countTokensForText
(text: string)
app/src/core/tokenizer/index.ts:29
↓ 1 callers
Function
countTokensForText
(text: string)
server/src/endpoints/service-proxies/openai/tokenizer/index.ts:32
↓ 1 callers
Method
createChat
(id?: string)
app/src/core/index.ts:202
↓ 1 callers
Function
createChatCompletion
(messages: OpenAIMessage[], parameters: Parameters)
app/src/core/chat/openai.ts:53
↓ 1 callers
Method
createChatCompletion
(messages: OpenAIMessage[], parameters: Parameters)
app/src/core/plugins/plugin-context.ts:7
↓ 1 callers
Method
createShare
(userID: string | null, id: string)
server/src/database/knex.ts:122
↓ 1 callers
Function
createStreamingChatCompletion
(messages: OpenAIMessage[], parameters: Parameters)
app/src/core/chat/openai.ts:80
↓ 1 callers
Method
createTables
()
server/src/database/knex.ts:27
↓ 1 callers
Method
createUser
(email: string, passwordHash: Buffer)
server/src/database/knex.ts:75
↓ 1 callers
Method
createYChat
(id = uuidv4())
app/src/core/chat/y-chat.ts:242
↓ 1 callers
Method
deleteChat
(userID: string, chatID: string)
server/src/database/knex.ts:137
↓ 1 callers
Method
destroy
()
app/src/core/options/index.ts:206
↓ 1 callers
Method
destroy
()
app/src/core/tts/direct-tts-player.ts:112
↓ 1 callers
Method
emitChanges
()
app/src/core/index.ts:122
↓ 1 callers
Method
encodeOrdinary
(text: string)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:194
↓ 1 callers
Method
execute
()
app/src/core/chat/create-reply.ts:66
↓ 1 callers
Function
extractTextSegments
(element: HTMLElement)
app/src/core/tts/use-tts.tsx:14
↓ 1 callers
Method
first
* Getter method for retrieving the first message in the most recent message chain. * @returns {MessageNode | null} - The first message in the mos
app/src/core/chat/message-tree.ts:62
↓ 1 callers
Function
formatTime
()
server/src/utils.ts:7
↓ 1 callers
Function
getActiveUsersInLast5Minutes
()
server/src/endpoints/base.ts:6
↓ 1 callers
Function
getAudioFile
(plugin: TTSPlugin<any>, text: string)
app/src/core/tts/audio-file-player.ts:23
↓ 1 callers
Method
getChat
(id: string)
app/src/core/chat/y-chat.ts:280
↓ 1 callers
Method
getChats
(userID: string)
server/src/database/knex.ts:103
↓ 1 callers
Method
getCurrentChat
()
app/src/core/plugins/plugin-context.ts:6
↓ 1 callers
Method
getCurrentVoice
* Returns the current voice based on the plugin options. * @returns {Promise<Voice>} A promise that resolves to a Voice object.
app/src/tts-plugins/elevenlabs.tsx:166
↓ 1 callers
Method
getCurrentVoice
()
app/src/tts-plugins/web-speech.ts:63
↓ 1 callers
Method
getCurrentVoice
()
app/src/core/tts/tts-plugin.ts:9
↓ 1 callers
Method
getDeletedChatIDs
(userID: string)
server/src/database/knex.ts:146
↓ 1 callers
Function
getEndpoint
(proxied = false)
app/src/tts-plugins/elevenlabs.tsx:16
↓ 1 callers
Method
getMessageContent
(messageID: string)
app/src/core/chat/y-chat.ts:85
↓ 1 callers
Method
getMessages
(userID: string)
server/src/database/knex.ts:108
↓ 1 callers
Function
getNumUpdatesProcessedIn5Minutes
()
server/src/endpoints/sync.ts:10
↓ 1 callers
Function
getOpenAIMessageFromMessage
(message: Message)
app/src/core/chat/types.ts:34
↓ 1 callers
Method
getOptions
()
app/src/core/plugins/plugin-context.ts:5
↓ 1 callers
Method
getQuickSettings
()
app/src/core/index.ts:245
↓ 1 callers
Method
getSession
()
app/src/core/backend.ts:53
↓ 1 callers
Method
getSharedChat
(id: string)
app/src/core/backend.ts:229
↓ 1 callers
Method
getUser
(email: string)
server/src/database/knex.ts:87
↓ 1 callers
Method
getVoices
* Fetches and returns the available voices from ElevenLabs API. * This function stores the list of voices in a static variable, which is used els
app/src/tts-plugins/elevenlabs.tsx:151
↓ 1 callers
Method
initialize
()
app/src/core/plugins/index.ts:9
↓ 1 callers
Method
initialize
()
server/src/index.ts:49
↓ 1 callers
Method
inverted
()
app/src/core/tokenizer/bpe.ts:35
↓ 1 callers
Method
inverted
()
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:30
↓ 1 callers
Method
isProtected
()
server/src/endpoints/sync.ts:59
↓ 1 callers
Method
isSpeaking
()
app/src/tts-plugins/web-speech.ts:120
↓ 1 callers
Method
isSynced
()
app/src/core/backend.ts:49
↓ 1 callers
Function
loadLocaleData
(locale: string)
app/src/index.tsx:48
↓ 1 callers
Method
loadYDoc
(userID: string)
server/src/database/knex.ts:153
↓ 1 callers
Method
loop
* The main loop function that executes the given handler function * while the loop is not cancelled. It catches any errors thrown by * the h
app/src/core/utils/async-loop.ts:35
↓ 1 callers
Function
md5
(data: string)
app/src/core/utils/index.ts:90
↓ 1 callers
Method
observeDeep
(callback: any)
app/src/core/chat/y-chat.ts:28
↓ 1 callers
Method
onCancel
()
app/src/core/chat/create-reply.ts:170
↓ 1 callers
Method
onData
(value: any)
app/src/core/chat/create-reply.ts:110
↓ 1 callers
Method
onDone
()
app/src/core/chat/create-reply.ts:131
↓ 1 callers
Function
parseResponseChunk
(buffer: any)
app/src/core/chat/openai.ts:34
↓ 1 callers
Function
parseResponseChunk
(buffer: any)
server/src/endpoints/service-proxies/openai/streaming.ts:79
↓ 1 callers
Function
pause
()
app/src/core/tts/use-tts.tsx:133
↓ 1 callers
Method
play
(index?: number)
app/src/core/tts/use-tts.tsx:38
↓ 1 callers
Method
preprocessModelInput
(messages: OpenAIMessage[], parameters: Parameters)
app/src/core/plugins/index.ts:20
↓ 1 callers
Method
process
()
app/src/core/tokenizer/chat-history-trimmer.ts:22
↓ 1 callers
Method
put
(key: string, value: string, contentType: string)
server/src/object-store/s3.ts:25
↓ 1 callers
Function
readStream
(stream: Readable)
server/src/object-store/s3.ts:37
↓ 1 callers
Method
receiveYUpdate
(update: Uint8Array)
app/src/core/backend.ts:194
↓ 1 callers
Method
regenerate
(message: Message, requestedParameters: Parameters)
app/src/core/index.ts:161
↓ 1 callers
Method
removeMessagesStrategy
()
app/src/core/tokenizer/chat-history-trimmer.ts:96
↓ 1 callers
Method
removeUnwantedMessagesStrategy
()
app/src/core/tokenizer/chat-history-trimmer.ts:76
↓ 1 callers
Method
resetOptions
(groupID: string, chatID?: string | null)
app/src/core/options/index.ts:91
← previous
next →
101–200 of 401, ranked by callers