Class CohereScoringModel.CohereScoringModelBuilder
java.lang.Object
dev.langchain4j.model.cohere.CohereScoringModel.CohereScoringModelBuilder
- Enclosing class:
CohereScoringModel
-
Method Summary
Modifier and TypeMethodDescriptionbuild()httpClientBuilder(HttpClientBuilder httpClientBuilder) Sets a custom HTTP client builder, allowing fine-grained control over the HTTP client configuration such as timeouts and proxy settings.logger(org.slf4j.Logger logger) logRequests(Boolean logRequests) logResponses(Boolean logResponses) maxRetries(Integer maxRetries) Deprecated.toString()
-
Method Details
-
httpClientBuilder
public CohereScoringModel.CohereScoringModelBuilder httpClientBuilder(HttpClientBuilder httpClientBuilder) Sets a custom HTTP client builder, allowing fine-grained control over the HTTP client configuration such as timeouts and proxy settings.- Parameters:
httpClientBuilder- the HTTP client builder- Returns:
this
-
baseUrl
-
apiKey
-
modelName
-
timeout
-
maxRetries
-
proxy
Deprecated.Proxy configuration viaproxy(...)is no longer supported since the migration to the langchain4j HttpClient abstraction. Passing a non-null proxy will cause anUnsupportedOperationExceptionwhen the model is built. To configure a proxy, supply a customHttpClientBuilderviahttpClientBuilder(HttpClientBuilder)instead.- Parameters:
proxy- the proxy (no longer applied)- Returns:
this
-
logRequests
-
logResponses
-
logger
- Parameters:
logger- an alternateLoggerto be used instead of the default one provided by Langchain4J for logging requests and responses.- Returns:
this.
-
build
-
toString
-
proxy(...)is no longer supported since the migration to the langchain4j HttpClient abstraction.