MCPcopy Create free account

hub / github.com/Hello-Application-XH/HelloGML / functions

Functions109 in github.com/Hello-Application-XH/HelloGML

↓ 24 callersFunctionuuid
(separator = true)
src/utils.ts:5
↓ 18 callersFunctionisArray
(value: any)
src/utils.ts:141
↓ 17 callersFunctionjsonResponse
(data: any, status = 200)
src/index.ts:98
↓ 13 callersFunctionerrorResponse
(message: string, status = 400)
src/index.ts:105
↓ 13 callersFunctionfetch
(request: Request, env: Env, _ctx: any)
src/index.ts:340
↓ 11 callersFunctiongetHeaders
()
src/chat.ts:55
↓ 9 callersFunctiongenerateSign
()
src/chat.ts:228
↓ 9 callersFunctionsafeEnqueue
(data: Uint8Array)
src/adapters.ts:118
↓ 9 callersFunctionunixTimestamp
()
src/utils.ts:18
↓ 8 callersFunctionacquireToken
(refreshToken: string)
src/chat.ts:286
↓ 7 callersFunctionauthenticate
(request: Request, env: Env)
src/index.ts:77
↓ 7 callersFunctioncheckResult
(response: Response, refreshToken: string)
src/chat.ts:320
↓ 6 callersFunctioncorsHeaders
()
src/index.ts:38
↓ 6 callersFunctioncreateParser
(onEvent: (event: SSEEvent) => void)
src/sse.ts:10
↓ 6 callersFunctionisString
(value: any)
src/utils.ts:137
↓ 5 callersFunctionisObject
(value: any)
src/utils.ts:145
↓ 5 callersFunctionsleep
(ms: number)
src/utils.ts:132
↓ 3 callersFunctionattempt
(fn: () => T)
src/utils.ts:181
↓ 3 callersFunctioncreateCompletion
(messages: any[], refreshToken: string, model = MODEL_NAME, refConvId = "", retryCount = 0, tools?: any[])
src/chat.ts:348
↓ 3 callersFunctioncreateCompletionStream
(messages: any[], refreshToken: string, model = MODEL_NAME, refConvId = "", retryCount = 0, tools?: any[])
src/chat.ts:411
↓ 3 callersFunctiongetTokenCacheKey
(refreshToken: string)
src/chat.ts:204
↓ 3 callersFunctiongetWorkerCache
()
src/chat.ts:200
↓ 3 callersFunctionglmPostStream
(url: string, body: any, headers: Record<string, string>, timeout = 120000)
src/chat.ts:333
↓ 3 callersFunctionisError
(value: any)
src/utils.ts:189
↓ 3 callersFunctionmessagesPrepare
(messages: any[], refs: any[], isRefConv = false)
src/chat.ts:667
↓ 3 callersFunctionremoveConversation
(convId: string, refreshToken: string, assistantId = DEFAULT_ASSISTANT_ID)
src/chat.ts:294
↓ 3 callersFunctionsendToolBlockStop
(idx: number)
src/adapters.ts:180
↓ 3 callersFunctionsseResponse
(stream: ReadableStream)
src/index.ts:109
↓ 3 callersFunctionuploadFile
(fileUrl: string, refreshToken: string, isVideoImage = false)
src/chat.ts:719
↓ 2 callersFunctionconvertToolMessages
(messages: any[])
src/chat.ts:188
↓ 2 callersFunctioncreateGeminiCompletion
( model: string, contents: any[], systemInstruction: any, refreshToken: string, stream = false, conversati
src/adapters.ts:381
↓ 2 callersFunctionextractRefFileUrls
(messages: any[])
src/chat.ts:653
↓ 2 callersFunctiongenerateImages
(model = "65a232c082ff90a2ad2f15e2", prompt: string, refreshToken: string, retryCount = 0)
src/chat.ts:486
↓ 2 callersFunctiongetTokenLiveStatus
(refreshToken: string)
src/chat.ts:1100
↓ 2 callersFunctiongetTokenPool
(kv: KVNamespace)
src/index.ts:58
↓ 2 callersFunctioninjectToolsPrompt
(messages: any[], tools: any[])
src/chat.ts:62
↓ 2 callersFunctionisBASE64Data
(value: string)
src/utils.ts:55
↓ 2 callersFunctionisFiniteNumber
(value: any)
src/utils.ts:157
↓ 2 callersFunctionparseToolCalls
(content: string)
src/chat.ts:100
↓ 2 callersFunctionsendMessageStop
(stopReason: string)
src/adapters.ts:188
↓ 2 callersFunctionsendTextBlockStop
()
src/adapters.ts:147
↓ 1 callersFunctionbasename
(url: string)
src/utils.ts:106
↓ 1 callersFunctioncheckFileUrl
(fileUrl: string)
src/chat.ts:708
↓ 1 callersFunctionconvertClaudeToGLM
(messages: any[], system?: string | any[])
src/adapters.ts:12
↓ 1 callersFunctionconvertClaudeToolsToOpenAI
(tools: any[])
src/adapters.ts:59
↓ 1 callersFunctionconvertGLMStreamToClaude
(glmStream: ReadableStream)
src/adapters.ts:104
↓ 1 callersFunctionconvertGLMStreamToGemini
(glmStream: ReadableStream)
src/adapters.ts:336
↓ 1 callersFunctionconvertGLMToClaude
(glmResponse: any)
src/adapters.ts:70
↓ 1 callersFunctionconvertGLMToGemini
(glmResponse: any)
src/adapters.ts:319
↓ 1 callersFunctionconvertGeminiToGLM
(contents: any[], systemInstruction?: any)
src/adapters.ts:293
↓ 1 callersFunctioncreateClaudeCompletion
( model: string, messages: any[], system: string | any[] | undefined, refreshToken: string, stream = false
src/adapters.ts:276
↓ 1 callersFunctioncreateTransStream
(model: string, readableStream: ReadableStream, endCallback?: (convId: string) => void, tools?: any[])
src/chat.ts:859
↓ 1 callersFunctiondefaultTo
(value: T | undefined | null, defaultValue: T)
src/utils.ts:165
↓ 1 callersFunctiondeleteCachedAccessToken
(refreshToken: string)
src/chat.ts:224
↓ 1 callersFunctiondispatch
()
src/sse.ts:15
↓ 1 callersFunctiondoRequest
()
src/chat.ts:248
↓ 1 callersFunctionextractAPIKeys
(request: Request)
src/index.ts:46
↓ 1 callersFunctionextractBASE64DataFormat
(value: string)
src/utils.ts:59
↓ 1 callersFunctionextractJsonObject
(str: string, key: string)
src/chat.ts:165
↓ 1 callersFunctionfetchBase64
(url: string)
src/index.ts:200
↓ 1 callersFunctiongenerateVideos
(model = "cogvideox", prompt: string, refreshToken: string, options: { imageUrl: string; videoStyle: string;
src/chat.ts:529
↓ 1 callersFunctiongetAdminPanelHTML
()
src/admin-panel.ts:2
↓ 1 callersFunctiongetCachedAccessToken
(refreshToken: string)
src/chat.ts:208
↓ 1 callersFunctiongetExtension
(mimeType: string)
src/utils.ts:99
↓ 1 callersFunctiongetMimeType
(filename: string)
src/utils.ts:94
↓ 1 callersFunctionhandleAdminAPIKey
(request: Request, env: Env)
src/index.ts:256
↓ 1 callersFunctionhandleAdminToken
(request: Request, env: Env)
src/index.ts:289
↓ 1 callersFunctionhandleAdminTokenCheck
(request: Request, env: Env)
src/index.ts:320
↓ 1 callersFunctionhandleChatCompletions
(request: Request, env: Env)
src/index.ts:122
↓ 1 callersFunctionhandleClaudeMessages
(request: Request, env: Env)
src/index.ts:138
↓ 1 callersFunctionhandleGeminiGenerateContent
(request: Request, path: string, env: Env)
src/index.ts:156
↓ 1 callersFunctionhandleGeminiModels
()
src/index.ts:152
↓ 1 callersFunctionhandleGeminiStreamGenerateContent
(request: Request, path: string, env: Env)
src/index.ts:167
↓ 1 callersFunctionhandleImageGenerations
(request: Request, env: Env)
src/index.ts:181
↓ 1 callersFunctionhandleModels
()
src/index.ts:244
↓ 1 callersFunctionhandleTokenCheck
(request: Request, env: Env)
src/index.ts:248
↓ 1 callersFunctionhandleVideoGenerations
(request: Request, env: Env)
src/index.ts:211
↓ 1 callersFunctionisNumber
(value: any)
src/utils.ts:153
↓ 1 callersFunctionmd5
(text: string)
src/utils.ts:10
↓ 1 callersFunctionrandomChoice
(arr: T[])
src/utils.ts:127
↓ 1 callersFunctionreceiveImages
(readableStream: ReadableStream)
src/chat.ts:1041
↓ 1 callersFunctionreceiveStream
(model: string, readableStream: ReadableStream, tools?: any[])
src/chat.ts:754
↓ 1 callersFunctionremoveBASE64DataHeader
(value: string)
src/utils.ts:64
↓ 1 callersFunctionrequestToken
(refreshToken: string)
src/chat.ts:243
↓ 1 callersFunctionselectTokenFromPool
(tokens: { id: string; token: string }[])
src/index.ts:70
↓ 1 callersFunctionsendMessageStart
()
src/adapters.ts:122
↓ 1 callersFunctionsendTextBlockStart
()
src/adapters.ts:133
↓ 1 callersFunctionsendTextDelta
(text: string)
src/adapters.ts:141
↓ 1 callersFunctionsendToolBlockStart
(toolCall: any, idx: number)
src/adapters.ts:155
↓ 1 callersFunctionsendToolDelta
(partialJson: string, idx: number)
src/adapters.ts:172
↓ 1 callersFunctionsetCachedAccessToken
(refreshToken: string, accessToken: string, refreshTime: number)
src/chat.ts:218
↓ 1 callersFunctionsetSignSecret
(secret: string)
src/chat.ts:18
↓ 1 callersFunctionverifyAPIKey
(kv: KVNamespace, apiKey: string)
src/index.ts:53
FunctionbuildDataBASE64
(type: string, ext: string, buffer: ArrayBuffer)
src/utils.ts:68
FunctiondecodeBASE64
(str: string)
src/utils.ts:35
FunctionencodeBASE64
(str: string)
src/utils.ts:26
Functionfeed
(chunk: string)
src/sse.ts:27
FunctionfetchFileBASE64
(url: string)
src/utils.ts:44
Functionget
(obj: any, path: string)
src/utils.ts:169
FunctionisFunction
(value: any)
src/utils.ts:161
next →1–100 of 109, ranked by callers