MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / visit

Function visit

codex_image/codex_image.ts:262–280  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

260 revisedPrompt = value.revised_prompt;
261 }
262 if (Array.isArray(value)) {
263 for (const item of value) visit(item);
264 return;
265 }
266 for (const nested of Object.values(value)) {
267 if (nested && typeof nested === "object") visit(nested);
268 }
269 };
270
271 visit(data);
272
273 return {
274 imageBase64,
275 revisedPrompt,
276 status: typeof data.status === "string" ? data.status : null,
277 responseId: typeof data.id === "string" ? data.id : responseId,
278 };
279 } catch {
280 return null;
281 }
282 };
283

Callers 1

fetchResponseStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected