MCPcopy Create free account

hub / github.com/PublicAffairs/openai-gemini / functions

Functions33 in github.com/PublicAffairs/openai-gemini

↓ 5 callersFunctionfixCors
({ headers, status, statusText })
src/worker.mjs:51
↓ 4 callersFunctionfetch
(request)
src/worker.mjs:4
↓ 4 callersFunctionsseline
(obj)
src/worker.mjs:678
↓ 3 callersFunctionassert
(success)
src/worker.mjs:15
↓ 3 callersFunctionmakeHeaders
(apiKey, more)
src/worker.mjs:72
↓ 2 callersFunctioncheckPromptBlock
(choices, promptFeedback, key)
src/worker.mjs:624
↓ 2 callersFunctiongenerateId
()
src/worker.mjs:530
↓ 2 callersFunctionnotEmpty
(el)
src/worker.mjs:603
↓ 2 callersFunctiontransformMsg
({ content, extra_content })
src/worker.mjs:412
↓ 2 callersFunctiontransformUsage
(data)
src/worker.mjs:605
↓ 1 callersFunctionadjustProps
(schemaPart)
src/worker.mjs:229
↓ 1 callersFunctionadjustSchema
(schema)
src/worker.mjs:242
↓ 1 callersFunctionerrHandler
(err)
src/worker.mjs:8
↓ 1 callersFunctionhandleCompletions
(req, apiKey)
src/worker.mjs:146
↓ 1 callersFunctionhandleEmbeddings
(req, apiKey)
src/worker.mjs:99
↓ 1 callersFunctionhandleModels
(apiKey)
src/worker.mjs:78
↓ 1 callersFunctionhandleOPTIONS
()
src/worker.mjs:57
↓ 1 callersFunctionparseImg
(url)
src/worker.mjs:324
↓ 1 callersFunctionprocessCompletionsResponse
(data, model, id)
src/worker.mjs:643
↓ 1 callersFunctionsum
(...numbers)
src/worker.mjs:604
↓ 1 callersFunctiontransformConfig
(req, isV3)
src/worker.mjs:286
↓ 1 callersFunctiontransformFnCalls
({ tool_calls })
src/worker.mjs:385
↓ 1 callersFunctiontransformFnResponse
({ content, tool_call_id }, parts)
src/worker.mjs:352
↓ 1 callersFunctiontransformMessages
(messages)
src/worker.mjs:458
↓ 1 callersFunctiontransformRequest
(req, isV3)
src/worker.mjs:523
↓ 1 callersFunctiontransformTools
(req)
src/worker.mjs:502
Methodconstructor
(message, status)
src/worker.mjs:44
FunctionparseStream
(chunk, controller)
src/worker.mjs:660
FunctionparseStreamFlush
(controller)
src/worker.mjs:669
FunctionrandomChar
()
src/worker.mjs:532
FunctiontoOpenAiStream
(line, controller)
src/worker.mjs:682
FunctiontoOpenAiStreamFlush
(controller)
src/worker.mjs:739
FunctiontransformCandidates
(key, cand)
src/worker.mjs:545