Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CookSleep/gpt_image_playground
/ functions
Functions
1,073 in github.com/CookSleep/gpt_image_playground
⨍
Functions
1,073
◇
Types & classes
79
↓ 1 callers
Function
appendAgentRecoveredToolOutputs
(conversationId: string, roundId: string, additions: ResponsesOutputItem[])
src/store.ts:3384
↓ 1 callers
Function
appendAgentStoppedMessage
(content: string)
src/store.ts:2497
↓ 1 callers
Function
appendStreamingUnsupportedHint
(message: string)
src/lib/imageApiShared.ts:91
↓ 1 callers
Function
applyThumbnail
(thumbnail: { dataUrl: string; width?: number; height?: number })
src/components/TaskCard.tsx:258
↓ 1 callers
Function
applyUrlCitations
(text: string, annotations: ResponseTextAnnotation[] | undefined)
src/lib/agentApi.ts:261
↓ 1 callers
Function
buildAgentApiInput
(conversation: AgentConversation, currentRound: AgentRound, tasks: TaskRecord[])
src/store.ts:3230
↓ 1 callers
Function
buildBackgroundMask
(data: Uint8ClampedArray, width: number, height: number, keyRgb: Rgb)
src/lib/transparentImage.ts:107
↓ 1 callers
Function
buildConnectedBackgroundMask
(data: Uint8ClampedArray, width: number, height: number, keyRgb: Rgb)
src/lib/transparentImage.ts:113
↓ 1 callers
Function
buildCustomProviderFromForm
()
src/components/SettingsModal.tsx:1024
↓ 1 callers
Function
buildDefaultConfigOnlySettingsFromUrlParams
* 仅展示默认配置模式:从 URL 参数中提取可覆盖的字段,patch 到当前活跃配置上。 * 不新建配置、不导入自定义服务商、不切换 provider。
src/lib/urlSettings.ts:83
↓ 1 callers
Function
buildTaskPath
(path: string, taskId: string)
src/lib/openaiCompatibleImageApi.ts:718
↓ 1 callers
Function
callBatchImageSingle
(opts: { profile: ApiProfile params: TaskParams batchItemId: string prompt: string referenceImageDat
src/lib/agentApi.ts:825
↓ 1 callers
Function
callCustomHttpImageApi
(opts: CallApiOptions, profile: ApiProfile, customProvider: CustomProviderDefinition)
src/lib/openaiCompatibleImageApi.ts:950
↓ 1 callers
Function
callImagesApi
(opts: CallApiOptions, profile: ApiProfile)
src/lib/openaiCompatibleImageApi.ts:490
↓ 1 callers
Function
callImagesApiConcurrent
(opts: CallApiOptions, profile: ApiProfile, n: number)
src/lib/openaiCompatibleImageApi.ts:499
↓ 1 callers
Function
callOpenAICompatibleImageApi
(opts: CallApiOptions, profile: ApiProfile, customProvider?: CustomProviderDefinition | null)
src/lib/openaiCompatibleImageApi.ts:480
↓ 1 callers
Function
callResponsesImageApi
(opts: CallApiOptions, profile: ApiProfile)
src/lib/openaiCompatibleImageApi.ts:988
↓ 1 callers
Function
canScrollElement
(element: HTMLElement, delta: ScrollDelta)
src/hooks/usePreventBackgroundScroll.ts:41
↓ 1 callers
Function
cancelActiveStroke
()
src/components/MaskEditorModal.tsx:215
↓ 1 callers
Function
clearConversationLongPressTimer
()
src/components/AgentWorkspace.tsx:623
↓ 1 callers
Function
clearData
(options: ClearOptions = { clearConfig: true, clearTasks: true })
src/store.ts:5315
↓ 1 callers
Function
clearDuplicateProfileTooltipTimer
()
src/components/SettingsModal.tsx:528
↓ 1 callers
Function
clearHintTimer
()
src/components/SizePickerModal.tsx:143
↓ 1 callers
Function
clearLlmPromptTooltipTimer
()
src/components/SettingsModal.tsx:535
↓ 1 callers
Function
clearMaskInfoTimer
()
src/components/MaskEditorModal.tsx:163
↓ 1 callers
Function
clearProfileImportUrlTooltipTimer
()
src/components/SettingsModal.tsx:521
↓ 1 callers
Function
clearTextSelection
()
src/components/DetailModal.tsx:57
↓ 1 callers
Function
clearTouchTimer
()
src/lib/paramDisplay.tsx:31
↓ 1 callers
Function
collectWebSearchCalls
(output: ResponsesOutputItem[] | undefined)
src/lib/agentWebSearch.ts:35
↓ 1 callers
Function
compareVersions
(a: string, b: string)
src/hooks/useVersionCheck.ts:6
↓ 1 callers
Function
completeRecoveredCustomTask
(task: TaskRecord, result: Awaited<ReturnType<typeof getCustomQueuedImageResult>>)
src/store.ts:5345
↓ 1 callers
Function
completeRecoveredFalTask
(task: TaskRecord, result: Awaited<ReturnType<typeof getFalQueuedImageResult>>)
src/store.ts:2063
↓ 1 callers
Function
computeDistanceToBackground
(mask: Uint8Array, width: number, height: number, maxDistance: number)
src/lib/transparentImage.ts:274
↓ 1 callers
Function
confirmDeleteCustomProvider
(provider: CustomProviderDefinition)
src/components/SettingsModal.tsx:1081
↓ 1 callers
Function
confirmRename
()
src/components/favorites/FavoriteCollectionsView.tsx:70
↓ 1 callers
Function
copyTextWithExecCommand
(text: string)
src/lib/clipboard.ts:46
↓ 1 callers
Function
createAgentContinuationInputItem
(newImageRefs: string[], toolCallsUsed: number, maxToolCalls: number)
src/store.ts:3186
↓ 1 callers
Function
createAgentConversation
(now = Date.now())
src/store.ts:637
↓ 1 callers
Function
createAgentConversationTitle
(prompt: string, fallbackTitle: string)
src/store.ts:649
↓ 1 callers
Function
createAgentGeneratedImagesInputItem
(round: AgentRound, tasks: TaskRecord[])
src/store.ts:2959
↓ 1 callers
Function
createAgentInstructions
(settings: AppSettings)
src/lib/agentApi.ts:60
↓ 1 callers
Function
createAgentRecoveredToolOutputs
(round: AgentRound, tasks: TaskRecord[])
src/store.ts:3280
↓ 1 callers
Function
createAgentTools
(params: TaskParams, profile: ApiProfile, settings: AppSettings, maskDataUrl?: string)
src/lib/agentApi.ts:159
↓ 1 callers
Function
createAgentUserInputItem
(conversation: AgentConversation, round: AgentRound, message: AgentMessage, tasks: TaskRecord[])
src/store.ts:2943
↓ 1 callers
Function
createCustomMultipartBody
(mapping: CustomProviderSubmitMapping, opts: CallApiOptions, context: Record<string, unknown>)
src/lib/openaiCompatibleImageApi.ts:764
↓ 1 callers
Function
createCustomProviderContext
(opts: CallApiOptions, profile: ApiProfile)
src/lib/openaiCompatibleImageApi.ts:740
↓ 1 callers
Function
createCustomProviderId
(name: string, usedIds: Set<string>)
src/lib/apiProfiles.ts:262
↓ 1 callers
Function
createFalRequestInput
(opts: CallApiOptions)
src/lib/falAiImageApi.ts:49
↓ 1 callers
Function
createGenerateImageFunctionTool
()
src/lib/agentApi.ts:131
↓ 1 callers
Function
createImageThumbnail
(dataUrl: string)
src/lib/db.ts:303
↓ 1 callers
Function
createImageTool
(params: TaskParams, profile: ApiProfile, maskDataUrl?: string)
src/lib/agentApi.ts:103
↓ 1 callers
Function
createImagesStreamEvents
(req, mode, n, isEdit)
scripts/mock-image-api.mjs:199
↓ 1 callers
Function
createImportedProfileId
(provider: ApiProvider, usedIds: Set<string>)
src/lib/apiProfiles.ts:711
↓ 1 callers
Function
createNewProfile
()
src/components/SettingsModal.tsx:788
↓ 1 callers
Function
createOpenAICompatiblePaths
()
src/lib/openaiCompatibleImageApi.ts:36
↓ 1 callers
Function
createOpenAITimeoutError
(timeoutSeconds: number, profile?: TimeoutStreamingHintProfile | null)
src/store.ts:140
↓ 1 callers
Function
createProfileImportUrl
(profile: ApiProfile, options: CopyImportUrlOptions)
src/components/SettingsModal.tsx:589
↓ 1 callers
Function
createReadyAgentRecoveredToolState
(round: AgentRound, tasks: TaskRecord[])
src/store.ts:3358
↓ 1 callers
Function
createResponse
()
src/lib/agentApi.test.ts:273
↓ 1 callers
Function
createResponsesImageTool
( params: TaskParams, isEdit: boolean, profile: ApiProfile, maskDataUrl?: string, )
src/lib/openaiCompatibleImageApi.ts:188
↓ 1 callers
Function
createResponsesInput
(prompt: string, inputImageDataUrls: string[], allowPromptRewrite: boolean)
src/lib/openaiCompatibleImageApi.ts:223
↓ 1 callers
Function
createResponsesStreamEvents
(mode)
scripts/mock-image-api.mjs:267
↓ 1 callers
Function
createUrlProfileId
(usedIds: Set<string>)
src/lib/urlSettings.ts:29
↓ 1 callers
Function
customProviderFormToInput
(form: CustomProviderForm)
src/components/SettingsModal.tsx:169
↓ 1 callers
Function
decodeXmlText
(text: string)
src/lib/agentApi.ts:434
↓ 1 callers
Function
dedupeApiProfiles
(profiles: ApiProfile[])
src/lib/apiProfiles.ts:750
↓ 1 callers
Function
delay
(ms: number)
src/components/InputBar.tsx:336
↓ 1 callers
Function
delay
(ms: number)
src/lib/downloadImages.ts:131
↓ 1 callers
Function
deleteCustomProvider
(provider: CustomProviderDefinition)
src/components/SettingsModal.tsx:1089
↓ 1 callers
Function
deleteProfile
(id: string)
src/components/SettingsModal.tsx:973
↓ 1 callers
Function
drawAt
(point: Point, nextTool = tool)
src/components/MaskEditorModal.tsx:390
↓ 1 callers
Function
drawMaskImageToCanvas
(maskImage: HTMLImageElement, maskCanvas: HTMLCanvasElement)
src/components/MaskEditorModal.tsx:80
↓ 1 callers
Function
drawStroke
(from: Point, to: Point, nextTool = tool)
src/components/MaskEditorModal.tsx:405
↓ 1 callers
Function
ensureDefaultNamedCollection
确保"默认"收藏夹存在(用于兜底孤立收藏任务)
src/store.ts:619
↓ 1 callers
Function
ensureListener
()
src/hooks/useCloseOnEscape.ts:20
↓ 1 callers
Function
escapeMarkdownLinkLabel
(text: string)
src/lib/agentApi.ts:255
↓ 1 callers
Function
eventToImageResponseItem
(event: Record<string, unknown>)
src/lib/openaiCompatibleImageApi.ts:345
↓ 1 callers
Function
executeBatchFunctionCall
(functionCallItem: ResponsesOutputItem)
src/store.ts:4155
↓ 1 callers
Function
executeSingleImageFunctionCall
(functionCallItem: ResponsesOutputItem)
src/store.ts:4099
↓ 1 callers
Function
exportData
(options: ExportOptions = { exportConfig: true, exportTasks: true })
src/store.ts:5412
↓ 1 callers
Function
failOpenAITaskIfStillRunning
(taskId: string, error: string, now = Date.now())
src/store.ts:1740
↓ 1 callers
Function
fileToDataUrl
(file: File)
src/lib/dataUrl.ts:36
↓ 1 callers
Function
filterAgentRoundResponseOutputForInput
(_round: AgentRound, _tasks: TaskRecord[], output: ResponsesOutputItem[])
src/store.ts:3065
↓ 1 callers
Function
findPresetForSize
(size: string)
src/components/SizePickerModal.tsx:34
↓ 1 callers
Function
formatDetailTime
(value: number)
src/components/HistoryModal.tsx:64
↓ 1 callers
Function
formatTime
(value: number)
src/components/HistoryModal.tsx:50
↓ 1 callers
Function
formatTime
(value: number)
src/components/AgentWorkspace.tsx:78
↓ 1 callers
Function
formatTime
(ts: number | null)
src/components/DetailModal.tsx:274
↓ 1 callers
Function
generateAgentConversationTitle
( conversationId: string, prompt: string, inputImageIds: string[], requestSettings: AppSettings, act
src/store.ts:2615
↓ 1 callers
Function
getAbortedSignal
(signals: Array<AbortSignal | undefined>)
src/lib/agentApi.ts:347
↓ 1 callers
Function
getActiveAgentConversation
()
src/store.ts:2462
↓ 1 callers
Function
getAgentAssistantBlocks
(round: AgentRound | null, taskSlots: AgentRoundTaskSlot[], allTasks: TaskRecord[], hasText: boolean)
src/components/AgentWorkspace.tsx:148
↓ 1 callers
Function
getAgentAssistantCopyContent
(fallbackContent: string, blocks: AgentAssistantBlock[])
src/components/AgentWorkspace.tsx:232
↓ 1 callers
Function
getAgentBranchLeafId
(conversation: AgentConversation, roundId: string)
src/store.ts:2788
↓ 1 callers
Function
getAgentRecoveredFailureError
(round: AgentRound, tasks: TaskRecord[])
src/store.ts:3417
↓ 1 callers
Function
getAgentRecoveredToolCallCount
(output: ResponsesOutputItem[], tasks: TaskRecord[])
src/store.ts:3400
↓ 1 callers
Function
getAgentRemovedReferenceTag
(referenceId: string)
src/lib/agentImageReferences.ts:19
↓ 1 callers
Function
getAgentRoundOutputItems
(round: AgentRound | null, tasks: TaskRecord[])
src/lib/agentWebSearch.ts:56
↓ 1 callers
Function
getAgentRoundResponseOutput
(round: AgentRound, tasks: TaskRecord[])
src/store.ts:3218
↓ 1 callers
Function
getAllImageIds
()
src/lib/db.ts:169
← previous
next →
501–600 of 1,073, ranked by callers