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) azureOpenAIServiceVersion(com.openai.azure.AzureOpenAIServiceVersion azureOpenAIServiceVersion) build()credential(com.openai.credential.Credential credential) customHeaders(Map<String, String> customHeaders) dimensions(Integer dimensions) isAzure(boolean isAzure) isGitHubModels(boolean isGitHubModels) maxRetries(Integer maxRetries) maxSegmentsPerBatch(Integer maxSegmentsPerBatch) 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
-
azureOpenAIServiceVersion
public OpenAiOfficialEmbeddingModel.Builder azureOpenAIServiceVersion(com.openai.azure.AzureOpenAIServiceVersion azureOpenAIServiceVersion) -
organizationId
-
isAzure
-
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
-