Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/a16z-infra/companion-app
/ functions
Functions
35 in github.com/a16z-infra/companion-app
⨍
Functions
35
◇
Types & classes
4
↓ 8 callers
Method
writeToHistory
(text: string, companionKey: CompanionKey)
src/app/utils/memory.ts:99
↓ 6 callers
Method
readLatestHistory
(companionKey: CompanionKey)
src/app/utils/memory.ts:114
↓ 6 callers
Function
returnError
(code: number, message: string)
src/app/api/steamship/route.ts:11
↓ 5 callers
Method
getInstance
()
src/app/utils/config.ts:13
↓ 5 callers
Function
rateLimit
(identifier: string)
src/app/utils/rateLimit.ts:4
↓ 3 callers
Method
generateRedisCompanionKey
(companionKey: CompanionKey)
src/app/utils/memory.ts:95
↓ 3 callers
Method
seedChatHistory
( seedContent: String, delimiter: string = "\n", companionKey: CompanionKey )
src/app/utils/memory.ts:130
↓ 3 callers
Method
vectorSearch
( recentChatHistory: string, companionFileName: string )
src/app/utils/memory.ts:44
↓ 2 callers
Method
getConfig
(fieldName: string, configValue: string)
src/app/utils/config.ts:20
↓ 2 callers
Method
init
()
src/app/utils/memory.ts:35
↓ 1 callers
Function
classNames
(...classes: string[])
src/components/Navbar.tsx:13
↓ 1 callers
Function
fetchData
()
src/components/Examples.tsx:28
↓ 1 callers
Function
getCompanions
()
src/components/actions.ts:9
↓ 1 callers
Function
isPhoneNumber
(input: string)
src/components/Examples.tsx:128
↓ 1 callers
Function
onSubmit
(e: any)
src/components/TextToImgModal.tsx:18
↓ 1 callers
Function
responseToChatBlocks
(completion: any)
src/components/ChatBlock.tsx:42
Function
ChatBlock
({text, mimeType, url} : { text?: string, mimeType?: string, url?: string })
src/components/ChatBlock.tsx:6
Function
Examples
()
src/components/Examples.tsx:9
Function
Home
()
src/app/page.tsx:4
Function
InputCard
()
src/components/InputCard.tsx:1
Function
Navbar
()
src/components/Navbar.tsx:17
Function
POST
(req: Request)
src/app/api/chatgpt/route.ts:15
Function
POST
(request: Request)
src/app/api/vicuna13b/route.ts:13
Function
POST
(req: Request)
src/app/api/steamship/route.ts:23
Function
POST
(request: Request)
src/app/api/llama2-13b/route.ts:13
Function
POST
(request: Request)
src/app/api/text/route.ts:12
Function
Page
()
src/app/sign-up/[[...sign-up]]/page.tsx:3
Function
Page
()
src/app/sign-in/[[...sign-in]]/page.tsx:3
Function
QAModal
({ open, setOpen, example, }: { open: boolean; setOpen: any; example: any; })
src/components/QAModal.tsx:10
Function
RootLayout
({ children, }: { children: React.ReactNode; })
src/app/layout.tsx:12
Function
TextToImgModal
({ open, setOpen, }: { open: boolean; setOpen: any; })
src/components/TextToImgModal.tsx:9
Method
constructor
()
src/app/utils/config.ts:8
Method
constructor
()
src/app/utils/memory.ts:19
Method
getInstance
()
src/app/utils/memory.ts:87
Function
handleClose
()
src/components/QAModal.tsx:56