---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/embeddings/openai/exceptions/variables/E_OPENAI_EMBEDDINGS_MALFORMED_RESPONSE.md
description: >-
  Thrown when a 2xx response body cannot be parsed into the expected `{ data: [{
  embedding: number[] }] }` shape (malformed JSON, missing `data`, wrong vector
  count). Non-fatal. Printf arg: `[detail]`.
---

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

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

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

Thrown when a 2xx response body cannot be parsed into the expected
`{ data: [{ embedding: number[] }] }` shape (malformed JSON, missing `data`, wrong vector
count). Non-fatal. Printf arg: `[detail]`.
