Builder
Builds a JCompletionOptions. Immutable: every setter returns a new builder, so one may be shared and extended in two ways. A value no provider accepts - a negative or non-finite temperature, a top-p outside 0..1, a non-finite penalty, a token count below 1 - throws IllegalArgumentException at once, and a null throws NullPointerException; a range only some models accept is left to the provider.
Attributes
- Source
- JCompletionOptions.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Sets an explicit thinking-token budget, overriding the one reasoning implies; at least 1. Anthropic, and OpenRouter for Claude models, raise a budget below 1024 to 1024 and keep it below the token limit; set without reasoning, it still turns thinking on.
Sets an explicit thinking-token budget, overriding the one reasoning implies; at least 1. Anthropic, and OpenRouter for Claude models, raise a budget below 1024 to 1024 and keep it below the token limit; set without reasoning, it still turns thinking on.
Attributes
- Source
- JCompletionOptions.scala
Sets the value as the thinking-token budget, or clears it when it is empty.
Sets the value as the thinking-token budget, or clears it when it is empty.
Attributes
- Source
- JCompletionOptions.scala
The options set so far.
Sets the frequency penalty; any finite value, the range being the provider's.
Sets the frequency penalty; any finite value, the range being the provider's.
Attributes
- Source
- JCompletionOptions.scala
Limits the completion to value tokens; at least 1.
Limits the completion to the value's tokens, or clears the limit when it is empty.
Limits the completion to the value's tokens, or clears the limit when it is empty.
Attributes
- Source
- JCompletionOptions.scala
Sets the presence penalty; any finite value, the range being the provider's.
Sets the presence penalty; any finite value, the range being the provider's.
Attributes
- Source
- JCompletionOptions.scala
Asks for this level of reasoning.
Asks for the value's level of reasoning, or for none when it is empty.
Asks for the value's level of reasoning, or for none when it is empty.
Attributes
- Source
- JCompletionOptions.scala
Sets the sampling temperature; at least 0.
Sets nucleus sampling; from 0 to 1.
