Interface LangChain4jAzureOpenAiConfig.AzureAiConfig
- Enclosing interface:
LangChain4jAzureOpenAiConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
-
Method Summary
Modifier and TypeMethodDescriptionadToken()
The Azure AD token to use for this operation.apiKey()
Azure OpenAI API keyThe API version to use for this operation.Chat model related settingsThe name of your model deployment.The domain name of your Azure OpenAI Resource.Embedding model related settingsWhether to enable the integration.endpoint()
The endpoint for the Azure OpenAI resource.Image model related settingsWhether the OpenAI client should log requestsWhether the OpenAI client should log responsesDeprecated.Using the fault tolerance mechanisms built in Langchain4j is not recommended.The name of your Azure OpenAI Resource.timeout()
Timeout for OpenAI calls
-
Method Details
-
resourceName
The name of your Azure OpenAI Resource. You're required to first deploy a model before you can make calls.This and
quarkus.langchain4j.azure-openai.deployment-name
are required ifquarkus.langchain4j.azure-openai.endpoint
is not set. Ifquarkus.langchain4j.azure-openai.endpoint
is set then this is never read. -
domainName
The domain name of your Azure OpenAI Resource. You're required to first deploy a model before you can make calls.This and
quarkus.langchain4j.azure-openai.domain-name
are required ifquarkus.langchain4j.azure-openai.endpoint
is not set. Ifquarkus.langchain4j.azure-openai.endpoint
is set then this is never read. -
deploymentName
The name of your model deployment. You're required to first deploy a model before you can make calls.This and
quarkus.langchain4j.azure-openai.resource-name
are required ifquarkus.langchain4j.azure-openai.endpoint
is not set. Ifquarkus.langchain4j.azure-openai.endpoint
is set then this is never read. -
endpoint
The endpoint for the Azure OpenAI resource.If not specified, then
quarkus.langchain4j.azure-openai.resource-name
,quarkus.langchain4j.azure-openai.domain-name
(defaults to "openai.azure.com") andquarkus.langchain4j.azure-openai.deployment-name
are required. In this case the endpoint will be set tohttps://${quarkus.langchain4j.azure-openai.resource-name}.${quarkus.langchain4j.azure-openai.domain-name}/openai/deployments/${quarkus.langchain4j.azure-openai.deployment-name}
-
adToken
-
apiVersion
The API version to use for this operation. This follows the YYYY-MM-DD format -
apiKey
-
timeout
-
maxRetries
Deprecated.Using the fault tolerance mechanisms built in Langchain4j is not recommended. If possible, use MicroProfile Fault Tolerance instead.The maximum number of times to retry. 1 means exactly one attempt, with retrying disabled. -
logRequests
-
logResponses
-
enableIntegration
Whether to enable the integration. Defaults totrue
, which means requests are made to the OpenAI provider. Set tofalse
to disable all requests. -
chatModel
ChatModelConfig chatModel()Chat model related settings -
embeddingModel
EmbeddingModelConfig embeddingModel()Embedding model related settings -
imageModel
ImageModelConfig imageModel()Image model related settings -
domainNameFor
default Optional<String> domainNameFor(LangChain4jAzureOpenAiConfig.AzureAiConfig.EndpointType type) -
endPointFor
-
resourceNameFor
default Optional<String> resourceNameFor(LangChain4jAzureOpenAiConfig.AzureAiConfig.EndpointType type) -
deploymentNameFor
default Optional<String> deploymentNameFor(LangChain4jAzureOpenAiConfig.AzureAiConfig.EndpointType type)
-