Class AzureOpenAiEmbeddingClient
java.lang.Object
org.springframework.ai.azure.openai.embedding.AzureOpenAiEmbeddingClient
- All Implemented Interfaces:
EmbeddingClient
-
Constructor Summary
ConstructorDescriptionAzureOpenAiEmbeddingClient
(com.azure.ai.openai.OpenAIClient azureOpenAiClient) AzureOpenAiEmbeddingClient
(com.azure.ai.openai.OpenAIClient azureOpenAiClient, String model) AzureOpenAiEmbeddingClient
(com.azure.ai.openai.OpenAIClient azureOpenAiClient, String model, MetadataMode metadataMode) -
Method Summary
-
Constructor Details
-
AzureOpenAiEmbeddingClient
public AzureOpenAiEmbeddingClient(com.azure.ai.openai.OpenAIClient azureOpenAiClient) -
AzureOpenAiEmbeddingClient
-
AzureOpenAiEmbeddingClient
public AzureOpenAiEmbeddingClient(com.azure.ai.openai.OpenAIClient azureOpenAiClient, String model, MetadataMode metadataMode)
-
-
Method Details
-
embed
- Specified by:
embed
in interfaceEmbeddingClient
-
embed
- Specified by:
embed
in interfaceEmbeddingClient
-
embed
- Specified by:
embed
in interfaceEmbeddingClient
-
embedForResponse
- Specified by:
embedForResponse
in interfaceEmbeddingClient
-
dimensions
public int dimensions()- Specified by:
dimensions
in interfaceEmbeddingClient
-