Interface LangChain4jAzureOpenAiConfig.AzureAiConfig
- Enclosing interface:
- LangChain4jAzureOpenAiConfig
-
Method Summary
Modifier and TypeMethodDescriptionapiKey()
Azure OpenAI API keyThe API version to use for this operation.Chat model related settingsThe name of your model deployment.Embedding model related settingsWhether or not 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 responsesThe maximum number of times to retryThe 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 not 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 not set then this is never read. -
endpoint
The endpoint for the Azure OpenAI resource.If not specified, then
quarkus.langchain4j.azure-openai.resource-name
andquarkus.langchain4j.azure-openai.deployment-name
are required. In this case the endpoint will be set tohttps://${quarkus.langchain4j.azure-openai.resource-name}.openai.azure.com/openai/deployments/${quarkus.langchain4j.azure-openai.deployment-name}
-
apiVersion
The API version to use for this operation. This follows the YYYY-MM-DD format -
apiKey
Azure OpenAI API key -
timeout
Timeout for OpenAI calls -
maxRetries
The maximum number of times to retry -
logRequests
Whether the OpenAI client should log requests -
logResponses
Whether the OpenAI client should log responses -
enableIntegration
Whether or not 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
-