Class OpenAiOfficialEmbeddingModel.Builder
java.lang.Object
dev.langchain4j.model.openaiofficial.OpenAiOfficialEmbeddingModel.Builder
- Enclosing class:
OpenAiOfficialEmbeddingModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionazureDeploymentName(String azureDeploymentName) Deprecated.azureOpenAIServiceVersion(com.openai.azure.AzureOpenAIServiceVersion azureOpenAIServiceVersion) build()credential(com.openai.credential.Credential credential) customHeaders(Map<String, String> customHeaders) dimensions(Integer dimensions) isAzure(boolean isAzure) Deprecated.UseisMicrosoftFoundry(boolean)insteadisGitHubModels(boolean isGitHubModels) isMicrosoftFoundry(boolean isMicrosoftFoundry) maxRetries(Integer maxRetries) maxSegmentsPerBatch(Integer maxSegmentsPerBatch) microsoftFoundryDeploymentName(String microsoftFoundryDeploymentName) modelName(com.openai.models.embeddings.EmbeddingModel modelName) openAIClient(com.openai.client.OpenAIClient openAIClient) organizationId(String organizationId)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseUrl
-
apiKey
-
credential
-
azureDeploymentName
@Deprecated public OpenAiOfficialEmbeddingModel.Builder azureDeploymentName(String azureDeploymentName) Deprecated.UsemicrosoftFoundryDeploymentName(String)instead -
microsoftFoundryDeploymentName
public OpenAiOfficialEmbeddingModel.Builder microsoftFoundryDeploymentName(String microsoftFoundryDeploymentName) -
azureOpenAIServiceVersion
public OpenAiOfficialEmbeddingModel.Builder azureOpenAIServiceVersion(com.openai.azure.AzureOpenAIServiceVersion azureOpenAIServiceVersion) -
organizationId
-
isAzure
Deprecated.UseisMicrosoftFoundry(boolean)instead -
isMicrosoftFoundry
-
isGitHubModels
-
openAIClient
public OpenAiOfficialEmbeddingModel.Builder openAIClient(com.openai.client.OpenAIClient openAIClient) -
modelName
-
modelName
public OpenAiOfficialEmbeddingModel.Builder modelName(com.openai.models.embeddings.EmbeddingModel modelName) -
dimensions
-
user
-
maxSegmentsPerBatch
-
timeout
-
maxRetries
-
proxy
-
customHeaders
-
build
-
microsoftFoundryDeploymentName(String)instead