Package | Description |
---|---|
com.oracle.bmc.generativeaiinference.model |
Modifier and Type | Method and Description |
---|---|
static CohereChatRequest.Builder |
CohereChatRequest.builder()
Create a new builder.
|
CohereChatRequest.Builder |
CohereChatRequest.Builder.chatHistory(List<CohereMessage> chatHistory)
A list of previous messages between the user and the model, meant to give the model
conversational context for responding to the user’s message.
|
CohereChatRequest.Builder |
CohereChatRequest.Builder.copy(CohereChatRequest model) |
CohereChatRequest.Builder |
CohereChatRequest.Builder.documents(List<Object> documents)
list of relevant documents that the model can cite to generate a more accurate reply.
|
CohereChatRequest.Builder |
CohereChatRequest.Builder.frequencyPenalty(Double frequencyPenalty)
To reduce repetitiveness of generated tokens, this number penalizes new tokens based on
their frequency in the generated text so far.
|
CohereChatRequest.Builder |
CohereChatRequest.Builder.isSearchQueriesOnly(Boolean isSearchQueriesOnly)
When true, the response will only contain a list of generated search queries, but no
search will take place, and no reply from the model to the user’s message will be
generated.
|
CohereChatRequest.Builder |
CohereChatRequest.Builder.isStream(Boolean isStream)
Whether to stream back partial progress.
|
CohereChatRequest.Builder |
CohereChatRequest.Builder.maxTokens(Integer maxTokens)
The maximum number of tokens to predict for each response.
|
CohereChatRequest.Builder |
CohereChatRequest.Builder.message(String message)
Text input for the model to respond to.
|
CohereChatRequest.Builder |
CohereChatRequest.Builder.preambleOverride(String preambleOverride)
When specified, the default Cohere preamble will be replaced with the provided one.
|
CohereChatRequest.Builder |
CohereChatRequest.Builder.presencePenalty(Double presencePenalty)
To reduce repetitiveness of generated tokens, this number penalizes new tokens based on
whether they’ve appeared in the generated text so far.
|
CohereChatRequest.Builder |
CohereChatRequest.Builder.temperature(Double temperature)
A number that sets the randomness of the generated output.
|
CohereChatRequest.Builder |
CohereChatRequest.toBuilder() |
CohereChatRequest.Builder |
CohereChatRequest.Builder.topK(Integer topK)
An integer that sets up the model to use only the top k most likely tokens in the
generated output.
|
CohereChatRequest.Builder |
CohereChatRequest.Builder.topP(Double topP)
If set to a probability 0.0 < p < 1.0, it ensures that only the most likely tokens, with
total probability mass of p, are considered for generation at each step.
|
Copyright © 2016–2024. All rights reserved.