MCPcopy Create free account

hub / github.com/cogentapps/chat-with-gpt / functions

Functions401 in github.com/cogentapps/chat-with-gpt

MethodencodeSinglePiece
(piece: Uint8Array)
app/src/core/tokenizer/bpe.ts:223
MethodencodeSinglePiece
(piece: Uint8Array)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:218
MethodencodeSingleToken
(piece: Uint8Array)
app/src/core/tokenizer/bpe.ts:211
MethodencodeSingleToken
(piece: Uint8Array)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:206
MethodencodeWithUnstable
(text: string, allowedSpecial: Set<string>)
app/src/core/tokenizer/bpe.ts:207
MethodencodeWithUnstable
(text: string, allowedSpecial: Set<string>)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:202
Functionentries
()
app/src/core/utils/idb.ts:87
Functionget
(key)
app/src/core/utils/idb.ts:50
Methodget
(key: string)
server/src/object-store/sqlite.ts:28
MethodgetAllYChats
()
app/src/core/chat/y-chat.ts:215
FunctiongetMany
(keys)
app/src/core/utils/idb.ts:60
MethodgetOption
(pluginID: string, optionID: string)
app/src/core/chat/y-chat.ts:298
FunctiongetPluginByName
(name: string)
app/src/core/plugins/metadata.ts:13
MethodgetPluginOptions
(chatID?: string)
app/src/core/index.ts:227
FunctiongetVoiceFromElevenlabsVoiceObject
(v: any)
app/src/tts-plugins/elevenlabs.tsx:20
MethodgetVoices
()
app/src/core/tts/tts-plugin.ts:5
FunctiongetYDoc
(userID: string)
server/src/database/index.ts:29
FunctionhandleUpdate
()
app/src/spotlight.tsx:14
Methodhandler
(req: express.Request, res: express.Response)
server/src/endpoints/health.ts:5
Methodhandler
(req: express.Request, res: express.Response)
server/src/endpoints/sync-legacy.ts:15
Methodhandler
(req: express.Request, res: express.Response)
server/src/endpoints/session.ts:6
Methodhandler
(req: express.Request, res: express.Response)
server/src/endpoints/delete-chat.ts:5
Methodhandler
(req: express.Request, res: express.Response)
server/src/endpoints/get-share.ts:5
Methodhandler
(req: express.Request, res: express.Response)
server/src/endpoints/share.ts:5
Methodhandler
(req: express.Request, res: express.Response)
server/src/endpoints/service-proxies/elevenlabs/voices.ts:8
Methodhandler
(req: express.Request, res: express.Response)
server/src/endpoints/service-proxies/elevenlabs/text-to-speech.ts:10
Methodhandler
(req: express.Request, res: express.Response)
server/src/endpoints/service-proxies/openai/index.ts:11
MethodhasOption
(pluginID: string, optionID: string)
app/src/core/chat/y-chat.ts:103
MethodimportedMetadata
()
app/src/core/chat/y-chat.ts:45
Functioninitialize
()
server/src/object-store/index.ts:2
Functioninitialize
()
server/src/database/index.ts:10
Methodinitialize
* Initializes the plugin by fetching available voices.
app/src/tts-plugins/elevenlabs.tsx:142
Methodinitialize
()
app/src/tts-plugins/web-speech.ts:22
Methodinitialize
()
server/src/object-store/sqlite.ts:19
Methodinitialize
()
server/src/database/knex.ts:22
MethodinsertMessages
(userID: string, messages: any[])
server/src/database/knex.ts:118
MethodisAuthenticated
()
app/src/core/backend.ts:206
FunctionisProtected
()
server/src/endpoints/base.ts:35
MethodisProtected
()
server/src/endpoints/delete-chat.ts:10
MethodisProtected
()
server/src/endpoints/service-proxies/elevenlabs/voices.ts:19
MethodisProtected
()
server/src/endpoints/service-proxies/elevenlabs/text-to-speech.ts:25
MethodisProtected
()
server/src/endpoints/service-proxies/openai/index.ts:19
Methoditem
(index: number)
app/src/core/speech-recognition-types.ts:19
Functionkeys
()
app/src/core/utils/idb.ts:28
Methodleafs
* 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
FunctionloadFromPreviousVersion
(doc: YChatDoc)
app/src/core/chat/chat-persistance.ts:7
FunctionloadParameters
(id: string | null | undefined = null)
app/src/core/chat/parameters.ts:9
Methodmessages
()
app/src/core/chat/y-chat.ts:53
Methodmetadata
()
app/src/core/chat/y-chat.ts:41
Methodnext
* 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
Functionol
({ start, children })
app/src/components/markdown.tsx:86
FunctiononClose
()
app/src/components/pwa-notifications.tsx:19
FunctiononRegisterError
(error)
app/src/components/pwa-notifications.tsx:14
FunctiononRegistered
(r)
app/src/components/pwa-notifications.tsx:11
FunctionopenElevenLabsApiKeyPanel
()
app/src/store/settings-ui.ts:34
FunctionopenSidebar
(state)
app/src/store/sidebar.ts:12
FunctionopenSystemPromptPanel
()
app/src/store/settings-ui.ts:35
FunctionopenTemperaturePanel
()
app/src/store/settings-ui.ts:36
Methodoptions
()
app/src/core/plugins/index.ts:16
Methodpause
()
app/src/tts-plugins/web-speech.ts:99
Methodpause
()
app/src/core/tts/direct-tts-player.ts:95
Methodpause
()
app/src/core/tts/audio-file-player.ts:237
Methodplay
(index?: number)
app/src/core/tts/direct-tts-player.ts:76
Methodplay
(index?: number)
app/src/core/tts/audio-file-player.ts:243
MethodpluginOptions
()
app/src/core/chat/y-chat.ts:49
MethodpostprocessModelOutput
(message: OpenAIMessage, contextMessages: OpenAIMessage[], parameters: Parameters, done: boolean)
app/src/plugins/titles.ts:34
MethodpreprocessModelInput
(messages: OpenAIMessage[], parameters: Parameters)
app/src/plugins/trimmer.ts:84
MethodpreprocessModelInput
(messages: OpenAIMessage[], parameters: Parameters)
app/src/plugins/system-prompt.tsx:45
MethodpushEvent
* 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
Methodput
(key: string, value: string, contentType: string)
server/src/object-store/sqlite.ts:40
FunctionrandomID
(bytes = 16)
server/src/utils.ts:3
MethodremoveEventListener
( type: K, listener: ( this: SpeechRecognition, ev: Sp
app/src/core/speech-recognition-types.ts:82
Methodroots
* 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
FunctionrunChatTrimmer
(messages: OpenAIMessage[], options: ChatHistoryTrimmerOptions)
app/src/core/tokenizer/worker.ts:6
FunctionsaveParameters
(id: string, parameters: Parameters)
app/src/core/chat/parameters.ts:23
FunctionselectMessage
(state: RootState)
app/src/store/message.ts:20
FunctionselectModal
(state: RootState)
app/src/store/ui.ts:26
FunctionselectSettingsOption
(state: RootState)
app/src/store/settings-ui.ts:31
FunctionselectSettingsTab
(state: RootState)
app/src/store/settings-ui.ts:30
FunctionselectSidebarOpen
(state: RootState)
app/src/store/sidebar.ts:26
Functionset
(key, value)
app/src/core/utils/idb.ts:38
MethodsetComplete
(complete: boolean)
app/src/core/tts/use-tts.tsx:42
FunctionsetMany
(items: [string, any][])
app/src/core/utils/idb.ts:74
MethodsetOption
(pluginID: string, optionID: string, value: any)
app/src/core/chat/y-chat.ts:303
MethodsetPluginOption
(pluginID: string, optionID: string, value: any, chatID?: string)
app/src/core/index.ts:237
MethodsetSourceElement
(key: string, element: HTMLElement | null)
app/src/core/tts/use-tts.tsx:41
FunctionsetText
(lines: string[], complete: boolean)
app/src/core/tts/types.ts:25
MethodsetTitle
(userID: string, chatID: string, title: string)
server/src/database/knex.ts:133
Methodspeak
(text: string, voice?: Voice)
app/src/tts-plugins/web-speech.ts:75
MethodspeakToBuffer
* 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
Methodstart
* Starts the asynchronous loop by calling the loop() method.
app/src/core/utils/async-loop.ts:24
Methodstop
()
app/src/tts-plugins/web-speech.ts:111
Methodstop
()
app/src/core/tts/direct-tts-plugin.ts:8
Methodtitle
()
app/src/core/chat/y-chat.ts:65
MethodtokenByteValues
()
app/src/core/tokenizer/bpe.ts:243
MethodtokenByteValues
()
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:238
FunctiontruncateMessage
(message: OpenAIMessage, tokens: number)
app/src/core/tokenizer/index.ts:58
FunctiontruncateText
(text: string, tokens: number)
app/src/core/tokenizer/index.ts:52
MethodupdateMessage
* 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
FunctionupdateSentences
()
app/src/core/tts/types.ts:31
← previousnext →301–400 of 401, ranked by callers