MCPcopy Create free account

hub / github.com/deiucanta/chatpad / functions

Functions42 in github.com/deiucanta/chatpad

↓ 5 callersFunctionuseChatId
()
src/hooks/useChatId.ts:3
↓ 3 callersFunctioncreateChatCompletion
( apiKey: string, messages: ChatCompletionRequestMessage[] )
src/utils/openai.ts:75
↓ 2 callersFunctiongetSystemMessage
()
src/routes/ChatRoute.tsx:58
↓ 2 callersFunctiononUserMsgToggle
(event: KeyboardEvent<HTMLTextAreaElement>)
src/routes/ChatRoute.tsx:197
↓ 2 callersFunctionsubmit
()
src/routes/ChatRoute.tsx:81
↓ 2 callersFunctiontoggleColorScheme
(value?: ColorScheme)
src/components/App.tsx:29
↓ 2 callersFunctionuseApiKey
()
src/hooks/useApiKey.ts:3
↓ 1 callersFunctioncheckOpenAIKey
(apiKey: string)
src/utils/openai.ts:105
↓ 1 callersFunctioncreateStreamChatCompletion
( apiKey: string, messages: ChatCompletionRequestMessage[], chatId: string, messageId: string )
src/utils/openai.ts:23
↓ 1 callersFunctiongetClient
( apiKey: string, apiType: string, apiAuth: string, basePath: string )
src/utils/openai.ts:7
↓ 1 callersFunctionloadConfig
()
src/utils/config.ts:38
↓ 1 callersFunctionsetStreamContent
( messageId: string, content: string, isFinal: boolean )
src/utils/openai.ts:55
↓ 1 callersFunctionsetTotalTokens
(chatId: string, content: string)
src/utils/openai.ts:64
↓ 1 callersFunctiontoggleChatPin
(chatId: string, event: React.UIEvent)
src/components/ChatItem.tsx:19
FunctionApp
()
src/components/App.tsx:20
FunctionCharacterCard
({ character, onClick, selectedIndex, i, }: { character: { name: string; description: string }; on
src/components/CharacterCard.tsx:3
FunctionChatItem
({ chat, isActive }: { chat: Chat, isActive: boolean })
src/components/ChatItem.tsx:18
FunctionChatRoute
()
src/routes/ChatRoute.tsx:30
FunctionChats
({ search }: { search: string })
src/components/Chats.tsx:8
FunctionCreatePromptModal
({ content }: { content?: string })
src/components/CreatePromptModal.tsx:17
FunctionDatabaseModal
({ children }: { children: ReactElement })
src/components/DatabaseModal.tsx:12
FunctionDeleteAllDataModal
({ onOpen }: { onOpen: () => void })
src/components/DeleteAllDataModal.tsx:6
FunctionDeleteChatModal
({ chat, children, }: { chat: Chat; children: ReactElement; })
src/components/DeleteChatModal.tsx:10
FunctionDeleteChatsModal
({ onOpen }: { onOpen: () => void })
src/components/DeleteChatsModal.tsx:6
FunctionDeletePromptModal
({ prompt }: { prompt: Prompt })
src/components/DeletePromptModal.tsx:11
FunctionEditChatModal
({ chat, children, }: { chat: Chat; children: ReactElement; })
src/components/EditChatModal.tsx:7
FunctionEditPromptModal
({ prompt }: { prompt: Prompt })
src/components/EditPromptModal.tsx:16
FunctionIndexRoute
()
src/routes/IndexRoute.tsx:24
FunctionLayout
()
src/components/Layout.tsx:51
FunctionLogo
(props: JSX.IntrinsicElements["svg"])
src/components/Logo.tsx:17
FunctionLogoIcon
(props: JSX.IntrinsicElements["svg"])
src/components/Logo.tsx:52
FunctionLogoText
(props: JSX.IntrinsicElements["svg"])
src/components/Logo.tsx:1
FunctionMainLink
({ icon, color, label, chat }: MainLinkProps)
src/components/MainLink.tsx:12
FunctionMessageItem
({ message }: { message: Message })
src/components/MessageItem.tsx:25
FunctionPrompts
({ onPlay, search, }: { onPlay: () => void; search: string; })
src/components/Prompts.tsx:12
FunctionScrollIntoView
({ children }: { children: ReactNode })
src/components/ScrollIntoView.tsx:3
FunctionSettingsModal
({ children }: { children: ReactElement })
src/components/SettingsModal.tsx:22
Methodconstructor
()
src/db/index.ts:44
FunctiononContent
(content, isFinal, stream)
src/utils/openai.ts:40
FunctiononContentChange
(event: ChangeEvent<HTMLTextAreaElement>)
src/routes/ChatRoute.tsx:222
FunctiononDone
(stream)
src/utils/openai.ts:46
FunctiononError
(error, stream)
src/utils/openai.ts:47