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
↓ 1 callers
Method
resetPluginOptions
(pluginID: string, chatID?: string | null)
app/src/core/index.ts:241
↓ 1 callers
Method
saveYUpdate
(userID: string, update: Uint8Array)
server/src/database/knex.ts:195
↓ 1 callers
Method
scheduleTimeout
()
app/src/core/chat/create-reply.ts:53
↓ 1 callers
Function
serializeChat
(chat: Chat)
app/src/core/chat/types.ts:52
↓ 1 callers
Method
setChatTitle
(title: string)
app/src/core/plugins/plugin-context.ts:8
↓ 1 callers
Method
setPendingMessageContent
(messageID: string, value: string)
app/src/core/chat/y-chat.ts:75
↓ 1 callers
Function
share
(text: string)
app/src/core/utils/index.ts:74
↓ 1 callers
Method
shareChat
(chat: Chat)
app/src/core/backend.ts:214
↓ 1 callers
Function
shouldUseProxy
(apiKey: string | undefined | null)
app/src/tts-plugins/elevenlabs.tsx:12
↓ 1 callers
Method
speakToBuffer
(text: string, voice?: Voice)
app/src/core/tts/tts-plugin.ts:13
↓ 1 callers
Function
streamingHandler
(req: express.Request, res: express.Response)
server/src/endpoints/service-proxies/openai/streaming.ts:7
↓ 1 callers
Method
sync
()
app/src/core/backend.ts:88
↓ 1 callers
Method
tick
()
app/src/core/tts/direct-tts-player.ts:26
↓ 1 callers
Method
trimMessagesStrategy
(excessTokens: number)
app/src/core/tokenizer/chat-history-trimmer.ts:119
↓ 1 callers
Function
useChat
(chatManager: ChatManager, id: string | undefined | null, share = false)
app/src/core/chat/use-chat.ts:14
↓ 1 callers
Function
useChatSpotlightProps
()
app/src/spotlight.tsx:6
↓ 1 callers
Function
useCreateAppContext
()
app/src/core/context.tsx:38
↓ 1 callers
Function
useTTSPlayerState
()
app/src/core/tts/use-tts.tsx:45
↓ 1 callers
Function
userPrompt
(messages: OpenAIMessage[])
app/src/plugins/titles.ts:19
Function
AppContextProvider
(props: { children: React.ReactNode })
app/src/core/context.tsx:249
Function
AudioControls
(props: any)
app/src/components/tts-controls.tsx:41
Function
ChatListItem
(props: { chat: any, onClick: any, selected: boolean })
app/src/components/sidebar/recent-chats.tsx:72
Function
ChatOptionsTab
(props: any)
app/src/components/settings/chat.tsx:3
Function
ChatPage
(props: any)
app/src/components/pages/chat.tsx:38
Function
CreateAccountModal
(props: any)
app/src/components/auth-modals.tsx:72
Function
Header
(props: HeaderProps)
app/src/components/header.tsx:144
Function
HeaderButton
(props: ButtonProps & { icon?: string, onClick?: any, children?: any })
app/src/components/header.tsx:124
Function
InlineLoader
()
app/src/components/message.tsx:198
Function
InstallUpdateNotification
()
app/src/components/pwa-notifications.tsx:5
Function
LandingPage
(props: any)
app/src/components/pages/landing.tsx:23
Function
LoginModal
(props: any)
app/src/components/auth-modals.tsx:36
Function
Markdown
(props: MarkdownProps)
app/src/components/markdown.tsx:59
Function
MessageComponent
(props: { message: Message, last: boolean, share?: boolean })
app/src/components/message.tsx:208
Function
MessageInput
(props: MessageInputProps)
app/src/components/input.tsx:40
Function
Page
(props: { id: string; headerProps?: HeaderProps; showSubHeader?: boolean; children: any; })
app/src/components/page.tsx:71
Function
PluginOptionWidget
(props: { pluginID: string, option: Option, chatID?: string | null | undefined, context: Context })
app/src/components/settings/tab.tsx:87
Function
QuickSettings
(props: any)
app/src/components/quick-settings.tsx:55
Function
QuickSettingsButton
(props: { groupID: string, option: Option })
app/src/components/quick-settings.tsx:29
Function
RecentChats
(props: any)
app/src/components/sidebar/recent-chats.tsx:183
Function
SettingsDrawer
(props: SettingsDrawerProps)
app/src/components/settings/index.tsx:78
Function
SettingsOption
(props: { focused?: boolean; heading?: string; description?: any; children?: any; span?: n
app/src/components/settings/option.tsx:1
Function
SettingsTab
(props: { name: string; children?: any; })
app/src/components/settings/tab.tsx:212
Function
Sidebar
(props: { className?: string; })
app/src/components/sidebar/index.tsx:102
Function
SpeechOptionsTab
()
app/src/components/settings/speech.tsx:3
Function
SubHeader
(props: any)
app/src/components/header.tsx:238
Function
SubHeaderMenuItem
(props: { item: MenuItem })
app/src/components/header.tsx:229
Function
TTSButton
(props: { id: string, selector: string, complete: boolean, autoplay?: boolean })
app/src/components/tts-button.tsx:10
Function
TTSContextProvider
(props: { children: React.ReactNode })
app/src/core/tts/use-tts.tsx:159
Function
UIPreferencesTab
(props: any)
app/src/components/settings/ui-preferences.tsx:3
Function
UserOptionsTab
(props: any)
app/src/components/settings/user.tsx:9
Method
[Symbol.asyncIterator]
()
app/src/core/utils/event-emitter-async-iterator.ts:88
Method
addFromString
(string: string, weight?: number)
app/src/core/speech-recognition-types.ts:17
Method
addFromURI
(src: string, weight?: number)
app/src/core/speech-recognition-types.ts:18
Function
bytePairSplit
(piece: Uint8Array, ranks: RankMap)
app/src/core/tokenizer/bpe.ts:78
Function
bytePairSplit
(piece: Uint8Array, ranks: RankMap)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:73
Method
chatIDMap
()
app/src/core/chat/y-chat.ts:182
Function
closeSidebar
(state)
app/src/store/sidebar.ts:15
Function
code
({ node, inline, className, children, ...props })
app/src/components/markdown.tsx:91
Function
constructor
(public context: ChatServer, private req: express.Request, private res: express.Response)
server/src/endpoints/base.ts:11
Method
constructor
()
app/src/core/index.ts:30
Method
constructor
(private context: ChatManager)
app/src/core/search.ts:12
Method
constructor
(private context: ChatManager)
app/src/core/backend.ts:38
Method
constructor
* Constructor takes an EventEmitter instance and an array of event names to listen to. * For each event name, it binds the pushEvent method with
app/src/core/utils/event-emitter-async-iterator.ts:39
Method
constructor
(public url: string, public options: any)
app/src/core/utils/sse.ts:33
Method
constructor
* Creates a new instance of the AsyncLoop class. * @param {Function} handler - The function to be executed in the loop. * @param {number} pa
app/src/core/utils/async-loop.ts:18
Method
constructor
(private chat: Chat, private yChat: YChat, private messages: Message[],
app/src/core/chat/create-reply.ts:19
Method
constructor
(public readonly id: string, public root: Y.Doc)
app/src/core/chat/y-chat.ts:24
Method
constructor
()
app/src/core/chat/y-chat.ts:155
Method
constructor
(messages: (Message | MessageNode)[] = [])
app/src/core/chat/message-tree.ts:36
Method
constructor
(private yDoc: YChatDoc, private pluginMetadata: PluginDescription[])
app/src/core/options/index.ts:19
Method
constructor
(private plugin: WebSpeechPlugin)
app/src/core/tts/direct-tts-player.ts:16
Method
constructor
(private plugin: TTSPlugin)
app/src/core/tts/audio-file-player.ts:70
Method
constructor
(public context?: PluginContext)
app/src/core/plugins/index.ts:6
Method
constructor
(private messages: OpenAIMessage[], private readonly options: ChatHistoryTrimmerOptions)
app/src/core/tokenizer/chat-history-trimmer.ts:14
Method
constructor
( encoder: RankMap, specialTokensEncoder: Map<string, number>, regex: RegExp )
app/src/core/tokenizer/bpe.ts:94
Method
constructor
()
server/src/index.ts:45
Method
constructor
(private knexConfig: Knex.Config = config.database)
server/src/database/knex.ts:18
Method
constructor
( encoder: RankMap, specialTokensEncoder: Map<string, number>, regex: RegExp )
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:89
Method
content
()
app/src/core/chat/y-chat.ts:57
Function
countTokensForMessages
(messages: OpenAIMessage[])
app/src/core/tokenizer/index.ts:44
Function
countTokensForMessages
(messages: OpenAIMessage[])
app/src/core/tokenizer/worker.ts:15
Function
countTokensForText
(text: string)
app/src/core/tokenizer/worker.ts:11
Method
decodeBytes
(tokens: number[])
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:226
Method
decodeSingleTokenBytes
(token: number)
app/src/core/tokenizer/bpe.ts:235
Method
decodeSingleTokenBytes
(token: number)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:230
Function
del
(key: string)
app/src/core/utils/idb.ts:98
Function
delMany
(keys: string[])
app/src/core/utils/idb.ts:109
Method
delete
(id: string)
app/src/core/chat/y-chat.ts:203
Method
deleteChat
(id: string, broadcast = true)
app/src/core/index.ts:218
Method
deleted
()
app/src/core/chat/y-chat.ts:37
Method
describe
* The `describe` function is responsible for providing a description of the ElevenLabsPlugin class, * including its ID, name, and options. *
app/src/tts-plugins/elevenlabs.tsx:61
Method
describe
()
app/src/tts-plugins/web-speech.ts:27
Method
describe
()
app/src/plugins/trimmer.ts:15
Method
describe
()
app/src/plugins/system-prompt.tsx:17
Method
describe
()
app/src/plugins/titles.ts:26
Function
deserializeChat
(serialized: string)
app/src/core/chat/types.ts:59
Method
destroy
()
app/src/core/tts/audio-file-player.ts:271
Method
displayStatistics
()
server/src/index.ts:168
Method
done
()
app/src/core/chat/y-chat.ts:61
Method
encode
(text: string, allowedSpecial: Set<string>)
server/src/endpoints/service-proxies/openai/tokenizer/bpe.ts:198
← previous
next →
201–300 of 401, ranked by callers