Interface LangChain4jOpenshiftAiConfig.OpenshiftAiConfig

Enclosing interface:
LangChain4jOpenshiftAiConfig

public static interface LangChain4jOpenshiftAiConfig.OpenshiftAiConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    Base URL where OpenShift AI serving is running, such as https://flant5s-l-predictor-ch2023.apps.cluster-hj2qv.dynamic.redhatworkshops.io:443/api
    Chat model related settings
    Whether or not to enable the integration.
    Whether the OpenShift AI client should log requests
    Whether the OpenShift AI client should log responses
    Timeout for OpenShift AI calls
  • Method Details

    • baseUrl

      @WithDefault("https://dummy.ai/api") URL baseUrl()
      Base URL where OpenShift AI serving is running, such as https://flant5s-l-predictor-ch2023.apps.cluster-hj2qv.dynamic.redhatworkshops.io:443/api
    • timeout

      @WithDefault("10s") Duration timeout()
      Timeout for OpenShift AI calls
    • logRequests

      @WithDefault("false") Boolean logRequests()
      Whether the OpenShift AI client should log requests
    • logResponses

      @WithDefault("false") Boolean logResponses()
      Whether the OpenShift AI 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