---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/embeddings/openai/exceptions/variables/E_INVALID_OPENAI_EMBEDDINGS_OPTIONS.md
description: >-
  Thrown when the resolved adapter options fail validation against
  `openAIEmbeddingsOptionsSchema` — e.g. a missing/empty `model`, or an unknown
  option key. Fatal: config bugs fail loud at construction time, not at embed
  time.
---

# Variable: E\_INVALID\_OPENAI\_EMBEDDINGS\_OPTIONS

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

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

Thrown when the resolved adapter options fail validation against
`openAIEmbeddingsOptionsSchema` — e.g. a missing/empty `model`, or an unknown option key.
Fatal: config bugs fail loud at construction time, not at embed time.
