---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/generation/openai/exceptions/variables/E_OPENAI_GENERATION_MALFORMED_RESPONSE.md
description: >-
  Thrown when a 2xx response body cannot be parsed into the expected `{ data: [{
  b64_json }] }` shape (malformed JSON, missing/empty `data`, or an entry
  missing `b64_json`). Non-fatal. Printf arg: `[detail]`.
---

# Variable: E\_OPENAI\_GENERATION\_MALFORMED\_RESPONSE

```ts
const E_OPENAI_GENERATION_MALFORMED_RESPONSE: CreatedException<[string]>;
```

Defined in: [src/batteries/generation/openai/exceptions.ts:60](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/generation/openai/exceptions.ts#L60)

Thrown when a 2xx response body cannot be parsed into the expected `{ data: [{ b64_json }] }`
shape (malformed JSON, missing/empty `data`, or an entry missing `b64_json`). Non-fatal. Printf
arg: `[detail]`.
