# Class AzureOpenAiEmbeddingResponse

Azure OpenAI embedding response.

- Defined in packages/foundation-models/dist/azure-openai/azure-openai-embedding-response.d.ts:6

##### Index

### Constructors

constructor

### Properties

_data
rawResponse

### Methods

getEmbedding
getEmbeddings
getRequestId

## Constructors

### constructor

- new AzureOpenAiEmbeddingResponse(
  rawResponse: HttpResponse,
  ): AzureOpenAiEmbeddingResponse

  #### Parameters

  - rawResponse: HttpResponse

  #### Returns AzureOpenAiEmbeddingResponse

  - Defined in packages/foundation-models/dist/azure-openai/azure-openai-embedding-response.d.ts:12

## Properties

### `Readonly`_data

_data: AzureOpenAiEmbeddingOutput

The embedding response.

- Defined in packages/foundation-models/dist/azure-openai/azure-openai-embedding-response.d.ts:11

### `Readonly` rawResponse

rawResponse: HttpResponse

- Defined in packages/foundation-models/dist/azure-openai/azure-openai-embedding-response.d.ts:7

## Methods

### getEmbedding

- getEmbedding(dataIndex?: number): number[] | undefined

  Parses the Azure OpenAI response and returns the embedding.

  #### Parameters

  - `Optional` dataIndex: number

    The index of the data to parse.

  #### Returns number[] | undefined

  The embedding vector.

  - Defined in packages/foundation-models/dist/azure-openai/azure-openai-embedding-response.d.ts:23

### getEmbeddings

- getEmbeddings(): number[][]

  Parses the Azure OpenAI response and returns all embeddings.

  #### Returns number[][]

  The embedding vectors.

  - Defined in packages/foundation-models/dist/azure-openai/azure-openai-embedding-response.d.ts:28

### getRequestId

- getRequestId(): string | undefined

  Gets the request ID from the response headers.

  #### Returns string | undefined

  The request ID, or undefined if the header is not present.

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

  - Defined in packages/foundation-models/dist/azure-openai/azure-openai-embedding-response.d.ts:17