MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / _getImageGenerationsDeserialize

Function _getImageGenerationsDeserialize

out/cli.cjs:78380–78439  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

78378 n: body["n"],
78379 size: body["size"],
78380 response_format: body["responseFormat"],
78381 quality: body["quality"],
78382 style: body["style"],
78383 user: body["user"]
78384 } }));
78385}
78386async function _getImageGenerationsDeserialize(result) {
78387 if (isUnexpected(result)) {
78388 throw result.body.error;
78389 }
78390 return {
78391 created: new Date(result.body["created"]),
78392 data: result.body["data"].map((p4) => {
78393 var _a5, _b2, _c2, _d2, _e2, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r2, _s, _t2, _u, _v, _w, _x, _y, _z, _0, _1, _22, _32, _42, _52, _62, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _222, _23, _24, _25;
78394 return {
78395 url: p4["url"],
78396 base64Data: p4["b64_json"],
78397 contentFilterResults: !p4.content_filter_results ? void 0 : {
78398 sexual: !((_a5 = p4.content_filter_results) === null || _a5 === void 0 ? void 0 : _a5.sexual) ? void 0 : {
78399 severity: (_c2 = (_b2 = p4.content_filter_results) === null || _b2 === void 0 ? void 0 : _b2.sexual) === null || _c2 === void 0 ? void 0 : _c2["severity"],
78400 filtered: (_e2 = (_d2 = p4.content_filter_results) === null || _d2 === void 0 ? void 0 : _d2.sexual) === null || _e2 === void 0 ? void 0 : _e2["filtered"]
78401 },
78402 violence: !((_f = p4.content_filter_results) === null || _f === void 0 ? void 0 : _f.violence) ? void 0 : {
78403 severity: (_h = (_g = p4.content_filter_results) === null || _g === void 0 ? void 0 : _g.violence) === null || _h === void 0 ? void 0 : _h["severity"],
78404 filtered: (_k = (_j = p4.content_filter_results) === null || _j === void 0 ? void 0 : _j.violence) === null || _k === void 0 ? void 0 : _k["filtered"]
78405 },
78406 hate: !((_l = p4.content_filter_results) === null || _l === void 0 ? void 0 : _l.hate) ? void 0 : {
78407 severity: (_o = (_m = p4.content_filter_results) === null || _m === void 0 ? void 0 : _m.hate) === null || _o === void 0 ? void 0 : _o["severity"],
78408 filtered: (_q = (_p = p4.content_filter_results) === null || _p === void 0 ? void 0 : _p.hate) === null || _q === void 0 ? void 0 : _q["filtered"]
78409 },
78410 selfHarm: !((_r2 = p4.content_filter_results) === null || _r2 === void 0 ? void 0 : _r2.self_harm) ? void 0 : {
78411 severity: (_t2 = (_s = p4.content_filter_results) === null || _s === void 0 ? void 0 : _s.self_harm) === null || _t2 === void 0 ? void 0 : _t2["severity"],
78412 filtered: (_v = (_u = p4.content_filter_results) === null || _u === void 0 ? void 0 : _u.self_harm) === null || _v === void 0 ? void 0 : _v["filtered"]
78413 }
78414 },
78415 revisedPrompt: p4["revised_prompt"],
78416 promptFilterResults: !p4.prompt_filter_results ? void 0 : {
78417 sexual: !((_w = p4.prompt_filter_results) === null || _w === void 0 ? void 0 : _w.sexual) ? void 0 : {
78418 severity: (_y = (_x = p4.prompt_filter_results) === null || _x === void 0 ? void 0 : _x.sexual) === null || _y === void 0 ? void 0 : _y["severity"],
78419 filtered: (_0 = (_z = p4.prompt_filter_results) === null || _z === void 0 ? void 0 : _z.sexual) === null || _0 === void 0 ? void 0 : _0["filtered"]
78420 },
78421 violence: !((_1 = p4.prompt_filter_results) === null || _1 === void 0 ? void 0 : _1.violence) ? void 0 : {
78422 severity: (_32 = (_22 = p4.prompt_filter_results) === null || _22 === void 0 ? void 0 : _22.violence) === null || _32 === void 0 ? void 0 : _32["severity"],
78423 filtered: (_52 = (_42 = p4.prompt_filter_results) === null || _42 === void 0 ? void 0 : _42.violence) === null || _52 === void 0 ? void 0 : _52["filtered"]
78424 },
78425 hate: !((_62 = p4.prompt_filter_results) === null || _62 === void 0 ? void 0 : _62.hate) ? void 0 : {
78426 severity: (_8 = (_7 = p4.prompt_filter_results) === null || _7 === void 0 ? void 0 : _7.hate) === null || _8 === void 0 ? void 0 : _8["severity"],
78427 filtered: (_10 = (_9 = p4.prompt_filter_results) === null || _9 === void 0 ? void 0 : _9.hate) === null || _10 === void 0 ? void 0 : _10["filtered"]
78428 },
78429 selfHarm: !((_11 = p4.prompt_filter_results) === null || _11 === void 0 ? void 0 : _11.self_harm) ? void 0 : {
78430 severity: (_13 = (_12 = p4.prompt_filter_results) === null || _12 === void 0 ? void 0 : _12.self_harm) === null || _13 === void 0 ? void 0 : _13["severity"],
78431 filtered: (_15 = (_14 = p4.prompt_filter_results) === null || _14 === void 0 ? void 0 : _14.self_harm) === null || _15 === void 0 ? void 0 : _15["filtered"]
78432 },
78433 profanity: !((_16 = p4.prompt_filter_results) === null || _16 === void 0 ? void 0 : _16.profanity) ? void 0 : {
78434 filtered: (_18 = (_17 = p4.prompt_filter_results) === null || _17 === void 0 ? void 0 : _17.profanity) === null || _18 === void 0 ? void 0 : _18["filtered"],
78435 detected: (_20 = (_19 = p4.prompt_filter_results) === null || _19 === void 0 ? void 0 : _19.profanity) === null || _20 === void 0 ? void 0 : _20["detected"]
78436 },
78437 jailbreak: !((_21 = p4.prompt_filter_results) === null || _21 === void 0 ? void 0 : _21.jailbreak) ? void 0 : {

Callers 1

getImageGenerationsFunction · 0.85

Calls 1

isUnexpectedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…