Interface LangChain4jWatsonxConfig.WatsonConfig

Enclosing interface:
LangChain4jWatsonxConfig

public static interface LangChain4jWatsonxConfig.WatsonConfig
  • Method Details

    • baseUrl

      @WithDefault("https://dummy.ai/api") String baseUrl()
      Base URL of the watsonx.ai API.
    • apiKey

      @WithDefault("dummy") String apiKey()
      IBM Cloud API key.

      To create a new API key, follow this link.

    • timeout

      @WithDefault("10s") Duration timeout()
      Timeout for watsonx.ai calls.
    • version

      @WithDefault("2024-03-14") String version()
      The version date for the API of the form YYYY-MM-DD.
    • projectId

      @WithDefault("dummy") String projectId()
      The project that contains the watsonx.ai resource.

      To look up your project id, click here.

    • logRequests

      @ConfigDocDefault("false") @WithDefault("${quarkus.langchain4j.log-requests}") Optional<Boolean> logRequests()
      Whether the watsonx.ai client should log requests.
    • logResponses

      @ConfigDocDefault("false") @WithDefault("${quarkus.langchain4j.log-requests}") Optional<Boolean> logResponses()
      Whether the watsonx.ai client should log responses.
    • enableIntegration

      @WithDefault("true") Boolean enableIntegration()
      Whether to enable the integration. Defaults to true, which means requests are made to the watsonx.ai provider. Set to false to disable all requests.
    • iam

      IAMConfig iam()
      IAM authentication related settings.
    • chatModel

      ChatModelConfig chatModel()
      Chat model related settings.
    • embeddingModel

      EmbeddingModelConfig embeddingModel()
      Embedding model related settings.