Class OCICohereChatOptions.Builder
java.lang.Object
org.springframework.ai.oci.cohere.OCICohereChatOptions.Builder
- Enclosing class:
- OCICohereChatOptions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
compartment
(String compartment) frequencyPenalty
(Double frequencyPenalty) preambleOverride
(String preambleOverride) presencePenalty
(Double presencePenalty) servingMode
(String servingMode) temperature
(Double temperature) withCompartment
(String compartment) Deprecated, for removal: This API element is subject to removal in a future version.withDocuments
(List<Object> documents) Deprecated, for removal: This API element is subject to removal in a future version.usedocuments(List)
instead.withFrequencyPenalty
(Double frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.usefrequencyPenalty(Double)
instead.withMaxTokens
(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead.withPreambleOverride
(String preambleOverride) Deprecated, for removal: This API element is subject to removal in a future version.usepreambleOverride(String)
instead.withPresencePenalty
(Double presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.usepresencePenalty(Double)
instead.withServingMode
(String servingMode) Deprecated, for removal: This API element is subject to removal in a future version.useservingMode(String)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usestop(List)
instead.withTemperature
(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetools(List)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead.
-
Field Details
-
chatOptions
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
model
-
maxTokens
-
compartment
-
servingMode
-
preambleOverride
-
temperature
-
topP
-
topK
-
frequencyPenalty
-
presencePenalty
-
stop
-
documents
-
tools
public OCICohereChatOptions.Builder tools(List<com.oracle.bmc.generativeaiinference.model.CohereTool> tools) -
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withMaxTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withMaxTokens(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead. -
withCompartment
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withCompartment(String compartment) Deprecated, for removal: This API element is subject to removal in a future version.usecompartment(String)
instead. -
withServingMode
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withServingMode(String servingMode) Deprecated, for removal: This API element is subject to removal in a future version.useservingMode(String)
instead. -
withPreambleOverride
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withPreambleOverride(String preambleOverride) Deprecated, for removal: This API element is subject to removal in a future version.usepreambleOverride(String)
instead. -
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withTemperature(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead. -
withTopP
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
withTopK
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withTopK(Integer topK) Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead. -
withFrequencyPenalty
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withFrequencyPenalty(Double frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.usefrequencyPenalty(Double)
instead. -
withPresencePenalty
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withPresencePenalty(Double presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.usepresencePenalty(Double)
instead. -
withStop
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withStop(List<String> stop) Deprecated, for removal: This API element is subject to removal in a future version.usestop(List)
instead. -
withDocuments
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withDocuments(List<Object> documents) Deprecated, for removal: This API element is subject to removal in a future version.usedocuments(List)
instead. -
withTools
@Deprecated(forRemoval=true, since="1.0.0-M5") public OCICohereChatOptions.Builder withTools(List<com.oracle.bmc.generativeaiinference.model.CohereTool> tools) Deprecated, for removal: This API element is subject to removal in a future version.usetools(List)
instead. -
build
-
compartment(String)
instead.