Invoke Azure OpenAI Embeddings

Generates embeddings using Azure OpenAI.

This example provides a sample configuration for the Invoke Azure OpenAI Embeddings policy. For more information on the policy parameter descriptions, see DataPower Nano Gateway documentation.

kind: InvokeAzureOpenAiEmbeddings
apiVersion: api.ibm.com/v1
metadata:
  name: invoke-azure-openai-embeddings-policy
  namespace: sample
  version: '1.0'
spec:
  inputMessage: 'request' # Optional - default value is request
  outputMessage: 'response' # Optional - default value is response
  tlsClientProfile: 'aiEndpointTlsClientProfile'
  opVersion: '2024-03-14'
  apiKeySecret: '*****' # The name of a Kubernetes Secret which holds the Azure OpenAI API Key. The Secret must contain data literal "azureOpenAiApiKey" whose value is the API Key to use for authentication.
  deploymentId: 'deploymentId'
  resourceId: 'resourceId'