(...args)
| 577 | prompt, |
| 578 | imageUrl: imageUrl || null, |
| 579 | model: modelName, |
| 580 | authToken: puter.authToken || null |
| 581 | }) |
| 582 | }).then(async (resp) => { |
| 583 | const data = await resp.json().catch(() => ({})); |
| 584 | if (!resp.ok) { |
| 585 | const err = new Error(data.error || `Puter AI proxy error (${resp.status})`); |
| 586 | if (data.code) err.code = data.code; |
no outgoing calls
no test coverage detected