Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AIOS-club/aios.chat
/ functions
Functions
96 in github.com/AIOS-club/aios.chat
⨍
Functions
96
◇
Types & classes
31
↓ 6 callers
Function
useChatList
()
src/hooks/useChatList.ts:5
↓ 3 callers
Function
handleChange
(e: CheckboxEvent)
src/components/chat/CheckOptions.tsx:32
↓ 3 callers
Function
loadEnv
()
api/src/utils/env.ts:4
↓ 3 callers
Function
useConfigSetting
()
src/components/config-setting/useConfigSetting.tsx:8
↓ 2 callers
Function
changeTheme
(theme: 'dark' | 'light')
src/components/general-config/GeneralConfig.tsx:24
↓ 2 callers
Function
getDefaultSystemMessage
()
src/utils/index.ts:90
↓ 2 callers
Function
getEnvString
(obj)
entry.js:24
↓ 2 callers
Function
handleCheckChange
(user: Con, bot: Con)
src/components/conversation/Conversation.tsx:116
↓ 2 callers
Function
handleConfigChange
(_config: MultiConfig)
src/store/ChatStore.tsx:61
↓ 2 callers
Function
handleError
()
src/components/prompt-store/ImportFromLocal.tsx:13
↓ 1 callers
Function
callOpenAI
( request: CreateChatCompletionRequest, config: Record<string, any>, retries: number )
api/src/routes/index.ts:15
↓ 1 callers
Function
deduplication
(json: unknown)
src/components/prompt-store/PromptStore.tsx:31
↓ 1 callers
Function
focus
()
src/components/auto-textarea/index.tsx:35
↓ 1 callers
Function
formatJSON
(value: Record<string, string> | Array<Record<string, string>>)
src/components/prompt-store/ImportFromLocal.tsx:18
↓ 1 callers
Function
formatJson
(data: any)
src/components/prompt-store/ImportFromOnline.tsx:19
↓ 1 callers
Function
getCachePrompt
* 获取前几次的用户对话信息
src/utils/index.ts:9
↓ 1 callers
Function
getCurrentDate
(noWeekDay: boolean = false)
src/utils/index.ts:74
↓ 1 callers
Function
getSystemMessages
(message?: string | string[])
src/utils/index.ts:94
↓ 1 callers
Function
handleChange
(record: PromptStoreList)
src/components/prompt-store/PromptStore.tsx:74
↓ 1 callers
Function
handleChatValueChange
(chatId: string, key: ChatListKey, value: any)
src/store/ChatStore.tsx:83
↓ 1 callers
Function
handleClose
()
src/components/prompt-store/PromptStore.tsx:69
↓ 1 callers
Function
handleDelete
(event: React.MouseEvent<HTMLSpanElement, MouseEvent>)
src/components/chat-item/index.tsx:32
↓ 1 callers
Function
handleFetchAnswer
(v: string, retry: boolean = false)
src/components/chat/index.tsx:68
↓ 1 callers
Function
handleResize
()
src/hooks/useWindowResize.ts:8
↓ 1 callers
Function
handleRetry
(e: React.MouseEvent<HTMLButtonElement, MouseEvent>, lastConversation: Conversation)
src/components/chat/index.tsx:162
↓ 1 callers
Function
handleScroll
()
src/components/chat/index.tsx:53
↓ 1 callers
Function
isMobile
()
src/hooks/useIsMobile.ts:1
↓ 1 callers
Function
parseMarkdown
(chunk: string)
src/utils/index.ts:63
↓ 1 callers
Function
parseStreamText
* 解析stream流的字符串
src/utils/index.ts:33
↓ 1 callers
Function
renderRetryButton
()
src/components/chat/index.tsx:207
↓ 1 callers
Function
renderTipsButtons
()
src/components/empty-chat-placeholder/index.tsx:17
↓ 1 callers
Function
useCallbackRef
(callback: T | undefined)
src/hooks/useCallbackRef.ts:3
↓ 1 callers
Function
useIsMobile
()
src/hooks/useIsMobile.ts:16
↓ 1 callers
Function
useScrollToBottom
()
src/hooks/useScrollToBottom.ts:10
Function
App
()
src/app.tsx:11
Function
App
()
src/pages/chat/index.tsx:10
Function
AutoTextArea
(props)
src/components/auto-textarea/index.tsx:16
Function
Chat
(props)
src/components/chat/index.tsx:26
Function
ChatConfig
(props)
src/components/chat-config/index.tsx:9
Function
ChatHeader
(props)
src/components/chat/ChatHeader.tsx:6
Function
ChatItem
({ chat })
src/components/chat-item/index.tsx:16
Function
ChatList
()
src/components/chat-list/index.tsx:8
Function
ChatStore
({ children }: ChatStoreReactProps)
src/store/ChatStore.tsx:18
Function
CheckOptions
(props)
src/components/chat/CheckOptions.tsx:19
Function
ConfigSetting
(props)
src/components/config-setting/index.tsx:10
Function
Conversation
(props)
src/components/conversation/Conversation.tsx:29
Function
Conversation
(props)
src/components/conversation/index.tsx:6
Function
EmptyChatPlaceholder
(props)
src/components/empty-chat-placeholder/index.tsx:14
Function
GeneralConfig
(props)
src/components/general-config/GeneralConfig.tsx:8
Function
GeneralConfig
(props)
src/components/general-config/index.tsx:6
Function
Header
()
src/components/header/Header.tsx:8
Function
Header
()
src/components/header/index.tsx:5
Function
ImportFromLocal
(props)
src/components/prompt-store/ImportFromLocal.tsx:7
Function
ImportFromOnline
(props)
src/components/prompt-store/ImportFromOnline.tsx:12
Function
Loading
()
src/components/loading/index.tsx:5
Function
OptionButton
(props)
src/components/chat/CheckOptions.tsx:9
Function
ProjectSourceInfo
()
src/components/project-source-info/index.tsx:10
Function
PromptItem
(props)
src/components/prompt-store/PromptItem.tsx:5
Function
PromptStore
()
src/components/prompt-store/PromptStore.tsx:14
Function
PromptStore
()
src/components/prompt-store/index.tsx:5
Function
SiderConfig
()
src/components/sider-config/SiderConfig.tsx:8
Function
SiderConfig
()
src/components/sider-config/index.tsx:5
Function
Square
()
src/pages/square/index.tsx:3
Function
SystemMessage
(props)
src/components/chat-config/SystemMesage.tsx:57
Function
SystemMessageItem
(props)
src/components/chat-config/SystemMesage.tsx:9
Function
filterChatList
(chat: ChatListProps)
src/components/chat-list/index.tsx:13
Function
handeImport
()
src/components/prompt-store/PromptStore.tsx:118
Function
handleAddOne
()
src/components/chat-config/SystemMesage.tsx:82
Function
handleChange
(e: React.ChangeEvent<HTMLTextAreaElement>)
src/components/auto-textarea/index.tsx:39
Function
handleChange
(id: string, value: string)
src/components/chat-config/SystemMesage.tsx:62
Function
handleChange
(value: string)
src/components/prompt-store/ImportFromLocal.tsx:45
Function
handleChange
(chatId: string, data: Conversation[], forceUpdate: boolean = false)
src/store/ChatStore.tsx:69
Function
handleChangeMode
(event: RadioChangeEvent)
src/components/general-config/GeneralConfig.tsx:35
Function
handleClear
()
src/components/prompt-store/PromptStore.tsx:57
Function
handleClick
()
src/components/chat-item/index.tsx:28
Function
handleClick
()
src/components/conversation/Conversation.tsx:79
Function
handleClick
()
src/components/sider-config/SiderConfig.tsx:13
Function
handleClick
()
src/components/prompt-store/ImportFromLocal.tsx:30
Function
handleClose
(event: React.MouseEvent<HTMLButtonElement, MouseEvent>)
src/components/chat/CheckOptions.tsx:38
Function
handleConfirm
(changeFlag: boolean, values?: PromptStoreList)
src/components/prompt-store/PromptStore.tsx:79
Function
handleCreateChat
(event: React.MouseEvent<HTMLDivElement | HTMLLIElement, MouseEvent>)
src/components/chat/index.tsx:174
Function
handleDelete
(id: string)
src/components/chat-config/SystemMesage.tsx:72
Function
handleDelete
(chatId: string)
src/store/ChatStore.tsx:96
Function
handleDeleteRecord
(event: React.MouseEvent<HTMLDivElement | HTMLLIElement, MouseEvent>)
src/components/chat/index.tsx:189
Function
handleDownload
()
src/components/prompt-store/ImportFromOnline.tsx:37
Function
handleImportData
(json: unknown)
src/components/prompt-store/PromptStore.tsx:100
Function
handleImportOnline
()
src/components/prompt-store/PromptStore.tsx:128
Function
handleRedirect
()
src/components/chat-config/index.tsx:37
Function
handleReset
()
src/components/chat-config/index.tsx:32
Function
handleSelectList
()
src/components/chat/index.tsx:169
Function
handleShare
(event: React.MouseEvent<HTMLDivElement | HTMLLIElement, MouseEvent>)
src/components/chat/CheckOptions.tsx:27
Function
handleSubmit
(values: any)
src/components/chat-config/index.tsx:25
Function
onDownloadProgress
({ event })
src/components/chat/index.tsx:112
Function
parseStreamText
* Parse a string from a stream
api/src/utils/index.ts:17
Function
renderContent
()
src/components/chat/CheckOptions.tsx:44
Function
useWindowResize
(callback: (width: number, height: number) => void)
src/hooks/useWindowResize.ts:4