Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deiucanta/chatpad
/ functions
Functions
42 in github.com/deiucanta/chatpad
⨍
Functions
42
◇
Types & classes
13
↓ 5 callers
Function
useChatId
()
src/hooks/useChatId.ts:3
↓ 3 callers
Function
createChatCompletion
( apiKey: string, messages: ChatCompletionRequestMessage[] )
src/utils/openai.ts:75
↓ 2 callers
Function
getSystemMessage
()
src/routes/ChatRoute.tsx:58
↓ 2 callers
Function
onUserMsgToggle
(event: KeyboardEvent<HTMLTextAreaElement>)
src/routes/ChatRoute.tsx:197
↓ 2 callers
Function
submit
()
src/routes/ChatRoute.tsx:81
↓ 2 callers
Function
toggleColorScheme
(value?: ColorScheme)
src/components/App.tsx:29
↓ 2 callers
Function
useApiKey
()
src/hooks/useApiKey.ts:3
↓ 1 callers
Function
checkOpenAIKey
(apiKey: string)
src/utils/openai.ts:105
↓ 1 callers
Function
createStreamChatCompletion
( apiKey: string, messages: ChatCompletionRequestMessage[], chatId: string, messageId: string )
src/utils/openai.ts:23
↓ 1 callers
Function
getClient
( apiKey: string, apiType: string, apiAuth: string, basePath: string )
src/utils/openai.ts:7
↓ 1 callers
Function
loadConfig
()
src/utils/config.ts:38
↓ 1 callers
Function
setStreamContent
( messageId: string, content: string, isFinal: boolean )
src/utils/openai.ts:55
↓ 1 callers
Function
setTotalTokens
(chatId: string, content: string)
src/utils/openai.ts:64
↓ 1 callers
Function
toggleChatPin
(chatId: string, event: React.UIEvent)
src/components/ChatItem.tsx:19
Function
App
()
src/components/App.tsx:20
Function
CharacterCard
({ character, onClick, selectedIndex, i, }: { character: { name: string; description: string }; on
src/components/CharacterCard.tsx:3
Function
ChatItem
({ chat, isActive }: { chat: Chat, isActive: boolean })
src/components/ChatItem.tsx:18
Function
ChatRoute
()
src/routes/ChatRoute.tsx:30
Function
Chats
({ search }: { search: string })
src/components/Chats.tsx:8
Function
CreatePromptModal
({ content }: { content?: string })
src/components/CreatePromptModal.tsx:17
Function
DatabaseModal
({ children }: { children: ReactElement })
src/components/DatabaseModal.tsx:12
Function
DeleteAllDataModal
({ onOpen }: { onOpen: () => void })
src/components/DeleteAllDataModal.tsx:6
Function
DeleteChatModal
({ chat, children, }: { chat: Chat; children: ReactElement; })
src/components/DeleteChatModal.tsx:10
Function
DeleteChatsModal
({ onOpen }: { onOpen: () => void })
src/components/DeleteChatsModal.tsx:6
Function
DeletePromptModal
({ prompt }: { prompt: Prompt })
src/components/DeletePromptModal.tsx:11
Function
EditChatModal
({ chat, children, }: { chat: Chat; children: ReactElement; })
src/components/EditChatModal.tsx:7
Function
EditPromptModal
({ prompt }: { prompt: Prompt })
src/components/EditPromptModal.tsx:16
Function
IndexRoute
()
src/routes/IndexRoute.tsx:24
Function
Layout
()
src/components/Layout.tsx:51
Function
Logo
(props: JSX.IntrinsicElements["svg"])
src/components/Logo.tsx:17
Function
LogoIcon
(props: JSX.IntrinsicElements["svg"])
src/components/Logo.tsx:52
Function
LogoText
(props: JSX.IntrinsicElements["svg"])
src/components/Logo.tsx:1
Function
MainLink
({ icon, color, label, chat }: MainLinkProps)
src/components/MainLink.tsx:12
Function
MessageItem
({ message }: { message: Message })
src/components/MessageItem.tsx:25
Function
Prompts
({ onPlay, search, }: { onPlay: () => void; search: string; })
src/components/Prompts.tsx:12
Function
ScrollIntoView
({ children }: { children: ReactNode })
src/components/ScrollIntoView.tsx:3
Function
SettingsModal
({ children }: { children: ReactElement })
src/components/SettingsModal.tsx:22
Method
constructor
()
src/db/index.ts:44
Function
onContent
(content, isFinal, stream)
src/utils/openai.ts:40
Function
onContentChange
(event: ChangeEvent<HTMLTextAreaElement>)
src/routes/ChatRoute.tsx:222
Function
onDone
(stream)
src/utils/openai.ts:46
Function
onError
(error, stream)
src/utils/openai.ts:47