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
Method
encodeSinglePiece
(piece: Uint8Array)
app/src/core/tokenizer/bpe.ts:223
Method
encodeSinglePiece
(piece: Uint8Array)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:218
Method
encodeSingleToken
(piece: Uint8Array)
app/src/core/tokenizer/bpe.ts:211
Method
encodeSingleToken
(piece: Uint8Array)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:206
Method
encodeWithUnstable
(text: string, allowedSpecial: Set<string>)
app/src/core/tokenizer/bpe.ts:207
Method
encodeWithUnstable
(text: string, allowedSpecial: Set<string>)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:202
Function
entries
()
app/src/core/utils/idb.ts:87
Function
get
(key)
app/src/core/utils/idb.ts:50
Method
get
(key: string)
server/src/object-store/sqlite.ts:28
Method
getAllYChats
()
app/src/core/chat/y-chat.ts:215
Function
getMany
(keys)
app/src/core/utils/idb.ts:60
Method
getOption
(pluginID: string, optionID: string)
app/src/core/chat/y-chat.ts:298
Function
getPluginByName
(name: string)
app/src/core/plugins/metadata.ts:13
Method
getPluginOptions
(chatID?: string)
app/src/core/index.ts:227
Function
getVoiceFromElevenlabsVoiceObject
(v: any)
app/src/tts-plugins/elevenlabs.tsx:20
Method
getVoices
()
app/src/core/tts/tts-plugin.ts:5
Function
getYDoc
(userID: string)
server/src/database/index.ts:29
Function
handleUpdate
()
app/src/spotlight.tsx:14
Method
handler
(req: express.Request, res: express.Response)
server/src/endpoints/health.ts:5
Method
handler
(req: express.Request, res: express.Response)
server/src/endpoints/sync-legacy.ts:15
Method
handler
(req: express.Request, res: express.Response)
server/src/endpoints/session.ts:6
Method
handler
(req: express.Request, res: express.Response)
server/src/endpoints/delete-chat.ts:5
Method
handler
(req: express.Request, res: express.Response)
server/src/endpoints/get-share.ts:5
Method
handler
(req: express.Request, res: express.Response)
server/src/endpoints/share.ts:5
Method
handler
(req: express.Request, res: express.Response)
server/src/endpoints/service-proxies/elevenlabs/voices.ts:8
Method
handler
(req: express.Request, res: express.Response)
server/src/endpoints/service-proxies/elevenlabs/text-to-speech.ts:10
Method
handler
(req: express.Request, res: express.Response)
server/src/endpoints/service-proxies/openai/index.ts:11
Method
hasOption
(pluginID: string, optionID: string)
app/src/core/chat/y-chat.ts:103
Method
importedMetadata
()
app/src/core/chat/y-chat.ts:45
Function
initialize
()
server/src/object-store/index.ts:2
Function
initialize
()
server/src/database/index.ts:10
Method
initialize
* Initializes the plugin by fetching available voices.
app/src/tts-plugins/elevenlabs.tsx:142
Method
initialize
()
app/src/tts-plugins/web-speech.ts:22
Method
initialize
()
server/src/object-store/sqlite.ts:19
Method
initialize
()
server/src/database/knex.ts:22
Method
insertMessages
(userID: string, messages: any[])
server/src/database/knex.ts:118
Method
isAuthenticated
()
app/src/core/backend.ts:206
Function
isProtected
()
server/src/endpoints/base.ts:35
Method
isProtected
()
server/src/endpoints/delete-chat.ts:10
Method
isProtected
()
server/src/endpoints/service-proxies/elevenlabs/voices.ts:19
Method
isProtected
()
server/src/endpoints/service-proxies/elevenlabs/text-to-speech.ts:25
Method
isProtected
()
server/src/endpoints/service-proxies/openai/index.ts:19
Method
item
(index: number)
app/src/core/speech-recognition-types.ts:19
Function
keys
()
app/src/core/utils/idb.ts:28
Method
leafs
* Getter method for retrieving leaf messages (messages without any replies) in the tree. * @returns {MessageNode[]} - An array of leaf messages.
app/src/core/chat/message-tree.ts:53
Function
loadFromPreviousVersion
(doc: YChatDoc)
app/src/core/chat/chat-persistance.ts:7
Function
loadParameters
(id: string | null | undefined = null)
app/src/core/chat/parameters.ts:9
Method
messages
()
app/src/core/chat/y-chat.ts:53
Method
metadata
()
app/src/core/chat/y-chat.ts:41
Method
next
* The next method is called when the iterator is requested to return the next value. * If there is an event in the eventQueue, it will return the
app/src/core/utils/event-emitter-async-iterator.ts:52
Function
ol
({ start, children })
app/src/components/markdown.tsx:86
Function
onClose
()
app/src/components/pwa-notifications.tsx:19
Function
onRegisterError
(error)
app/src/components/pwa-notifications.tsx:14
Function
onRegistered
(r)
app/src/components/pwa-notifications.tsx:11
Function
openElevenLabsApiKeyPanel
()
app/src/store/settings-ui.ts:34
Function
openSidebar
(state)
app/src/store/sidebar.ts:12
Function
openSystemPromptPanel
()
app/src/store/settings-ui.ts:35
Function
openTemperaturePanel
()
app/src/store/settings-ui.ts:36
Method
options
()
app/src/core/plugins/index.ts:16
Method
pause
()
app/src/tts-plugins/web-speech.ts:99
Method
pause
()
app/src/core/tts/direct-tts-player.ts:95
Method
pause
()
app/src/core/tts/audio-file-player.ts:237
Method
play
(index?: number)
app/src/core/tts/direct-tts-player.ts:76
Method
play
(index?: number)
app/src/core/tts/audio-file-player.ts:243
Method
pluginOptions
()
app/src/core/chat/y-chat.ts:49
Method
postprocessModelOutput
(message: OpenAIMessage, contextMessages: OpenAIMessage[], parameters: Parameters, done: boolean)
app/src/plugins/titles.ts:34
Method
preprocessModelInput
(messages: OpenAIMessage[], parameters: Parameters)
app/src/plugins/trimmer.ts:84
Method
preprocessModelInput
(messages: OpenAIMessage[], parameters: Parameters)
app/src/plugins/system-prompt.tsx:45
Method
pushEvent
* The pushEvent method is called when an event is emitted from the EventEmitter. * If there is a pending Promise in the resolveQueue, it resolves
app/src/core/utils/event-emitter-async-iterator.ts:73
Method
put
(key: string, value: string, contentType: string)
server/src/object-store/sqlite.ts:40
Function
randomID
(bytes = 16)
server/src/utils.ts:3
Method
removeEventListener
( type: K, listener: ( this: SpeechRecognition, ev: Sp
app/src/core/speech-recognition-types.ts:82
Method
roots
* Getter method for retrieving root messages (messages without a parent) in the tree. * @returns {MessageNode[]} - An array of root messages.
app/src/core/chat/message-tree.ts:44
Function
runChatTrimmer
(messages: OpenAIMessage[], options: ChatHistoryTrimmerOptions)
app/src/core/tokenizer/worker.ts:6
Function
saveParameters
(id: string, parameters: Parameters)
app/src/core/chat/parameters.ts:23
Function
selectMessage
(state: RootState)
app/src/store/message.ts:20
Function
selectModal
(state: RootState)
app/src/store/ui.ts:26
Function
selectSettingsOption
(state: RootState)
app/src/store/settings-ui.ts:31
Function
selectSettingsTab
(state: RootState)
app/src/store/settings-ui.ts:30
Function
selectSidebarOpen
(state: RootState)
app/src/store/sidebar.ts:26
Function
set
(key, value)
app/src/core/utils/idb.ts:38
Method
setComplete
(complete: boolean)
app/src/core/tts/use-tts.tsx:42
Function
setMany
(items: [string, any][])
app/src/core/utils/idb.ts:74
Method
setOption
(pluginID: string, optionID: string, value: any)
app/src/core/chat/y-chat.ts:303
Method
setPluginOption
(pluginID: string, optionID: string, value: any, chatID?: string)
app/src/core/index.ts:237
Method
setSourceElement
(key: string, element: HTMLElement | null)
app/src/core/tts/use-tts.tsx:41
Function
setText
(lines: string[], complete: boolean)
app/src/core/tts/types.ts:25
Method
setTitle
(userID: string, chatID: string, title: string)
server/src/database/knex.ts:133
Method
speak
(text: string, voice?: Voice)
app/src/tts-plugins/web-speech.ts:75
Method
speakToBuffer
* Converts the given text into speech using the specified voice and returns an audio file as a buffer. * @param {string} text The text to be conv
app/src/tts-plugins/elevenlabs.tsx:198
Method
start
* Starts the asynchronous loop by calling the loop() method.
app/src/core/utils/async-loop.ts:24
Method
stop
()
app/src/tts-plugins/web-speech.ts:111
Method
stop
()
app/src/core/tts/direct-tts-plugin.ts:8
Method
title
()
app/src/core/chat/y-chat.ts:65
Method
tokenByteValues
()
app/src/core/tokenizer/bpe.ts:243
Method
tokenByteValues
()
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:238
Function
truncateMessage
(message: OpenAIMessage, tokens: number)
app/src/core/tokenizer/index.ts:58
Function
truncateText
(text: string, tokens: number)
app/src/core/tokenizer/index.ts:52
Method
updateMessage
* Method to update the content, timestamp, and done status of an existing message in the tree. * @param {Message} message - The updated message.
app/src/core/chat/message-tree.ts:140
Function
updateSentences
()
app/src/core/tts/types.ts:31
← previous
next →
301–400 of 401, ranked by callers