MCPcopy Create free account

hub / github.com/KashifKhn/gemini-proxy / functions

Functions43 in github.com/KashifKhn/gemini-proxy

↓ 4 callersFunctionERROR_HTML
(msg: string)
src/routes/auth.ts:16
↓ 4 callersFunctionbuildUserAgent
(model = "gemini-code-assist")
src/oauth/userAgent.ts:3
↓ 3 callersFunctiongetStorePath
()
src/store/tokens.ts:6
↓ 3 callersFunctionreadTokenStore
()
src/store/tokens.ts:10
↓ 2 callersFunctionauthEndpointsDisabled
()
src/routes/auth.ts:19
↓ 2 callersFunctionbase64url
(bytes: Uint8Array)
src/oauth/pkce.ts:22
↓ 2 callersFunctiongetCallbackUrl
()
src/constants.ts:46
↓ 2 callersFunctionmapFinishReason
(geminiReason: string | undefined)
src/gemini/response.ts:118
↓ 2 callersFunctionprocessLine
( line: string, chunkId: string, model: string, controller: ReadableStreamDefaultController<Uint8Array
src/gemini/stream.ts:53
↓ 2 callersFunctionwriteTokenStore
(store: TokenStore)
src/store/tokens.ts:19
↓ 1 callersFunctionbuildAuthorizationUrl
()
src/oauth/exchange.ts:20
↓ 1 callersFunctionbuildGeminiRequest
( openAiRequest: OpenAIChatRequest, accessToken: string, projectId: string, )
src/gemini/request.ts:20
↓ 1 callersFunctionbuildUsage
(meta: GeminiResponse["usageMetadata"])
src/gemini/response.ts:128
↓ 1 callersFunctionconvertMessages
(messages: OpenAIMessage[])
src/gemini/request.ts:83
↓ 1 callersFunctionconvertTools
(tools: OpenAITool[])
src/gemini/request.ts:190
↓ 1 callersFunctioncreateApp
()
src/app.ts:7
↓ 1 callersFunctioncreateOpenAIStreamFromGemini
( geminiStream: ReadableStream<Uint8Array>, model: string, )
src/gemini/stream.ts:5
↓ 1 callersFunctiondoRefresh
(refreshToken: string)
src/oauth/refresh.ts:19
↓ 1 callersFunctionexchangeCode
(code: string, state: string)
src/oauth/exchange.ts:41
↓ 1 callersFunctionextractStreamingToolCalls
( candidate: GeminiCandidate | undefined, )
src/gemini/response.ts:100
↓ 1 callersFunctionextractTextContent
( content: OpenAIMessage["content"], )
src/gemini/request.ts:166
↓ 1 callersFunctionextractToolCalls
(candidate: GeminiCandidate | undefined)
src/gemini/response.ts:85
↓ 1 callersFunctionfetchUserEmail
(accessToken: string)
src/oauth/exchange.ts:91
↓ 1 callersFunctiongeminiChunkToOpenAI
( geminiBody: GeminiResponse, model: string, chunkId: string, )
src/gemini/response.ts:48
↓ 1 callersFunctiongeminiResponseToOpenAI
( geminiBody: GeminiResponse, model: string, )
src/gemini/response.ts:11
↓ 1 callersFunctiongeneratePkce
()
src/oauth/pkce.ts:3
↓ 1 callersFunctiongenerateState
()
src/oauth/pkce.ts:14
↓ 1 callersFunctiongetServerPort
()
src/constants.ts:42
↓ 1 callersFunctiongetValidAccessToken
()
src/store/tokens.ts:34
↓ 1 callersFunctionisTokenExpired
(store: TokenStore)
src/store/tokens.ts:30
↓ 1 callersFunctionloadCodeAssist
(accessToken: string)
src/oauth/project.ts:44
↓ 1 callersFunctionmergeConsecutiveTurns
(contents: GeminiContent[])
src/gemini/request.ts:177
↓ 1 callersFunctionmessageToGeminiParts
(message: OpenAIMessage)
src/gemini/request.ts:127
↓ 1 callersFunctionnormalizeProjectId
(value: LoadCodeAssistPayload["cloudaicompanionProject"])
src/oauth/project.ts:117
↓ 1 callersFunctiononboardUser
(accessToken: string, tierId: string)
src/oauth/project.ts:70
↓ 1 callersFunctionpickTier
( tiers: LoadCodeAssistPayload["allowedTiers"], )
src/oauth/project.ts:123
↓ 1 callersFunctionpump
()
src/gemini/stream.ts:18
↓ 1 callersFunctionrefreshAccessToken
(refreshToken: string)
src/oauth/refresh.ts:6
↓ 1 callersFunctionresolveProject
(accessToken: string)
src/oauth/project.ts:12
↓ 1 callersFunctionwait
(ms: number)
src/oauth/project.ts:133
FunctionclearTokenStore
()
src/store/tokens.ts:23
FunctionrequireApiKey
(c: Context, next: Next)
src/middleware/auth.ts:3
Functionstart
(controller)
src/gemini/stream.ts:15