(value: any)
| 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 |
no outgoing calls
no test coverage detected