Interface LangChain4jAzureOpenAiConfig.AzureAiConfig

Enclosing interface:
LangChain4jAzureOpenAiConfig

public static interface LangChain4jAzureOpenAiConfig.AzureAiConfig
  • Method Details

    • resourceName

      Optional<String> 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 if quarkus.langchain4j.azure-openai.endpoint is not set. If quarkus.langchain4j.azure-openai.endpoint is not set then this is never read.

    • deploymentName

      Optional<String> 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 if quarkus.langchain4j.azure-openai.endpoint is not set. If quarkus.langchain4j.azure-openai.endpoint is not set then this is never read.

    • endpoint

      Optional<String> endpoint()
      The endpoint for the Azure OpenAI resource.

      If not specified, then quarkus.langchain4j.azure-openai.resource-name and quarkus.langchain4j.azure-openai.deployment-name are required. In this case the endpoint will be set to https://${quarkus.langchain4j.azure-openai.resource-name}.openai.azure.com/openai/deployments/${quarkus.langchain4j.azure-openai.deployment-name}

    • apiVersion

      @WithDefault("2023-05-15") String apiVersion()
      The API version to use for this operation. This follows the YYYY-MM-DD format
    • apiKey

      @WithDefault("dummy") String apiKey()
      Azure OpenAI API key
    • timeout

      @WithDefault("10s") Duration timeout()
      Timeout for OpenAI calls
    • maxRetries

      @WithDefault("3") Integer maxRetries()
      The maximum number of times to retry
    • logRequests

      @ConfigDocDefault("false") Optional<Boolean> logRequests()
      Whether the OpenAI client should log requests
    • logResponses

      @ConfigDocDefault("false") Optional<Boolean> logResponses()
      Whether the OpenAI client should log responses
    • enableIntegration

      @WithDefault("true") Boolean enableIntegration()
      Whether or not to enable the integration. Defaults to true, which means requests are made to the OpenAI provider. Set to false 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