Interface LangChain4jWatsonxConfig.WatsonConfig
- Enclosing interface:
- LangChain4jWatsonxConfig
public static interface LangChain4jWatsonxConfig.WatsonConfig
-
Method Summary
Modifier and TypeMethodDescriptionapiKey()IBM Cloud API key.baseUrl()Base URL of the watsonx.ai API.Chat model related settings.Embedding model related settings.Whether to enable the integration.iam()IAM authentication related settings.Whether the watsonx.ai client should log requests.Whether the watsonx.ai client should log responses.The project that contains the watsonx.ai resource.timeout()Timeout for watsonx.ai calls.version()The version date for the API of the form YYYY-MM-DD.
-
Method Details
-
baseUrl
Base URL of the watsonx.ai API. -
apiKey
IBM Cloud API key.To create a new API key, follow this link.
-
timeout
@ConfigDocDefault("10s") @WithDefault("${quarkus.langchain4j.timeout}") Optional<Duration> timeout()Timeout for watsonx.ai calls. -
version
The version date for the API of the form YYYY-MM-DD. -
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
Whether to enable the integration. Defaults totrue, which means requests are made to the watsonx.ai provider. Set tofalseto disable all requests. -
iam
IAMConfig iam()IAM authentication related settings. -
chatModel
ChatModelConfig chatModel()Chat model related settings. -
embeddingModel
EmbeddingModelConfig embeddingModel()Embedding model related settings.
-