public static final class Api.Parameters extends com.google.protobuf.GeneratedMessageV3 implements Api.ParametersOrBuilder
api.Parameters| Modifier and Type | Class and Description |
|---|---|
static class |
Api.Parameters.Builder
Protobuf type
api.Parameters |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DO_SAMPLE_FIELD_NUMBER |
static int |
FREQUENCY_PENALTY_FIELD_NUMBER |
static int |
LOGPROBS_FIELD_NUMBER |
static int |
MAX_NEW_TOKENS_FIELD_NUMBER |
static int |
MAX_PROMPT_TOKENS_FIELD_NUMBER |
static int |
MAX_TOKENS_FIELD_NUMBER |
static int |
MIN_NEW_TOKENS_FIELD_NUMBER |
static int |
PRESENCE_PENALTY_FIELD_NUMBER |
static int |
REPETITION_PENALTY_FIELD_NUMBER |
static int |
STOP_FIELD_NUMBER |
static int |
TEMPERATURE_FIELD_NUMBER |
static int |
TOP_K_FIELD_NUMBER |
static int |
TOP_P_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Api.Parameters |
getDefaultInstance() |
Api.Parameters |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getDoSample()
Whether or not to use sampling, use greedy decoding otherwise.
|
float |
getFrequencyPenalty()
Number between -2.0 and 2.0.
|
long |
getLogprobs()
optional int64 logprobs = 12; |
long |
getMaxNewTokens()
The maximum number of tokens to generate, ignoring the number of tokens in
the prompt
|
long |
getMaxPromptTokens()
the maximum number of prompt tokens, if prompt tokens length over this
limit, it will be truncated as prompt[-max_prompt_tokens:]
|
long |
getMaxTokens()
The maximum number of tokens to generate in the char completion.
|
long |
getMinNewTokens()
the minimum number of tokens to generate
|
com.google.protobuf.Parser<Api.Parameters> |
getParserForType() |
float |
getPresencePenalty()
Number between -2.0 and 2.0.
|
float |
getRepetitionPenalty()
The parameter for repetition penalty, from [1.0, 2.0]
|
int |
getSerializedSize() |
String |
getStop(int index)
repeated string stop = 13; |
com.google.protobuf.ByteString |
getStopBytes(int index)
repeated string stop = 13; |
int |
getStopCount()
repeated string stop = 13; |
com.google.protobuf.ProtocolStringList |
getStopList()
repeated string stop = 13; |
float |
getTemperature()
Exponential scaling output probability distribution
|
long |
getTopK()
The number of highest probability vocabulary tokens to keep for
top-k-filtering.
|
float |
getTopP()
An alternative to sampling with temperature, called nucleus sampling,
where the model considers the results of the tokens with top_p probability
mass
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDoSample()
Whether or not to use sampling, use greedy decoding otherwise.
|
boolean |
hasFrequencyPenalty()
Number between -2.0 and 2.0.
|
int |
hashCode() |
boolean |
hasLogprobs()
optional int64 logprobs = 12; |
boolean |
hasMaxNewTokens()
The maximum number of tokens to generate, ignoring the number of tokens in
the prompt
|
boolean |
hasMaxPromptTokens()
the maximum number of prompt tokens, if prompt tokens length over this
limit, it will be truncated as prompt[-max_prompt_tokens:]
|
boolean |
hasMaxTokens()
The maximum number of tokens to generate in the char completion.
|
boolean |
hasMinNewTokens()
the minimum number of tokens to generate
|
boolean |
hasPresencePenalty()
Number between -2.0 and 2.0.
|
boolean |
hasRepetitionPenalty()
The parameter for repetition penalty, from [1.0, 2.0]
|
boolean |
hasTemperature()
Exponential scaling output probability distribution
|
boolean |
hasTopK()
The number of highest probability vocabulary tokens to keep for
top-k-filtering.
|
boolean |
hasTopP()
An alternative to sampling with temperature, called nucleus sampling,
where the model considers the results of the tokens with top_p probability
mass
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Api.Parameters.Builder |
newBuilder() |
static Api.Parameters.Builder |
newBuilder(Api.Parameters prototype) |
Api.Parameters.Builder |
newBuilderForType() |
protected Api.Parameters.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Api.Parameters |
parseDelimitedFrom(InputStream input) |
static Api.Parameters |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.Parameters |
parseFrom(byte[] data) |
static Api.Parameters |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.Parameters |
parseFrom(ByteBuffer data) |
static Api.Parameters |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.Parameters |
parseFrom(com.google.protobuf.ByteString data) |
static Api.Parameters |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.Parameters |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Api.Parameters |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Api.Parameters |
parseFrom(InputStream input) |
static Api.Parameters |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Api.Parameters> |
parser() |
Api.Parameters.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TEMPERATURE_FIELD_NUMBER
public static final int MAX_TOKENS_FIELD_NUMBER
public static final int TOP_P_FIELD_NUMBER
public static final int PRESENCE_PENALTY_FIELD_NUMBER
public static final int FREQUENCY_PENALTY_FIELD_NUMBER
public static final int MAX_NEW_TOKENS_FIELD_NUMBER
public static final int REPETITION_PENALTY_FIELD_NUMBER
public static final int DO_SAMPLE_FIELD_NUMBER
public static final int TOP_K_FIELD_NUMBER
public static final int MIN_NEW_TOKENS_FIELD_NUMBER
public static final int MAX_PROMPT_TOKENS_FIELD_NUMBER
public static final int LOGPROBS_FIELD_NUMBER
public static final int STOP_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasTemperature()
Exponential scaling output probability distribution
optional float temperature = 1;hasTemperature in interface Api.ParametersOrBuilderpublic float getTemperature()
Exponential scaling output probability distribution
optional float temperature = 1;getTemperature in interface Api.ParametersOrBuilderpublic boolean hasMaxTokens()
The maximum number of tokens to generate in the char completion.
optional int64 max_tokens = 2;hasMaxTokens in interface Api.ParametersOrBuilderpublic long getMaxTokens()
The maximum number of tokens to generate in the char completion.
optional int64 max_tokens = 2;getMaxTokens in interface Api.ParametersOrBuilderpublic boolean hasTopP()
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass
optional float top_p = 3;hasTopP in interface Api.ParametersOrBuilderpublic float getTopP()
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass
optional float top_p = 3;getTopP in interface Api.ParametersOrBuilderpublic boolean hasPresencePenalty()
Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
optional float presence_penalty = 4;hasPresencePenalty in interface Api.ParametersOrBuilderpublic float getPresencePenalty()
Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
optional float presence_penalty = 4;getPresencePenalty in interface Api.ParametersOrBuilderpublic boolean hasFrequencyPenalty()
Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
optional float frequency_penalty = 5;hasFrequencyPenalty in interface Api.ParametersOrBuilderpublic float getFrequencyPenalty()
Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
optional float frequency_penalty = 5;getFrequencyPenalty in interface Api.ParametersOrBuilderpublic boolean hasMaxNewTokens()
The maximum number of tokens to generate, ignoring the number of tokens in the prompt
optional int64 max_new_tokens = 6;hasMaxNewTokens in interface Api.ParametersOrBuilderpublic long getMaxNewTokens()
The maximum number of tokens to generate, ignoring the number of tokens in the prompt
optional int64 max_new_tokens = 6;getMaxNewTokens in interface Api.ParametersOrBuilderpublic boolean hasRepetitionPenalty()
The parameter for repetition penalty, from [1.0, 2.0]
optional float repetition_penalty = 7;hasRepetitionPenalty in interface Api.ParametersOrBuilderpublic float getRepetitionPenalty()
The parameter for repetition penalty, from [1.0, 2.0]
optional float repetition_penalty = 7;getRepetitionPenalty in interface Api.ParametersOrBuilderpublic boolean hasDoSample()
Whether or not to use sampling, use greedy decoding otherwise. Default to false
optional bool do_sample = 8;hasDoSample in interface Api.ParametersOrBuilderpublic boolean getDoSample()
Whether or not to use sampling, use greedy decoding otherwise. Default to false
optional bool do_sample = 8;getDoSample in interface Api.ParametersOrBuilderpublic boolean hasTopK()
The number of highest probability vocabulary tokens to keep for top-k-filtering.
optional int64 top_k = 9;hasTopK in interface Api.ParametersOrBuilderpublic long getTopK()
The number of highest probability vocabulary tokens to keep for top-k-filtering.
optional int64 top_k = 9;getTopK in interface Api.ParametersOrBuilderpublic boolean hasMinNewTokens()
the minimum number of tokens to generate
optional int64 min_new_tokens = 10;hasMinNewTokens in interface Api.ParametersOrBuilderpublic long getMinNewTokens()
the minimum number of tokens to generate
optional int64 min_new_tokens = 10;getMinNewTokens in interface Api.ParametersOrBuilderpublic boolean hasMaxPromptTokens()
the maximum number of prompt tokens, if prompt tokens length over this limit, it will be truncated as prompt[-max_prompt_tokens:]
optional int64 max_prompt_tokens = 11;hasMaxPromptTokens in interface Api.ParametersOrBuilderpublic long getMaxPromptTokens()
the maximum number of prompt tokens, if prompt tokens length over this limit, it will be truncated as prompt[-max_prompt_tokens:]
optional int64 max_prompt_tokens = 11;getMaxPromptTokens in interface Api.ParametersOrBuilderpublic boolean hasLogprobs()
optional int64 logprobs = 12;hasLogprobs in interface Api.ParametersOrBuilderpublic long getLogprobs()
optional int64 logprobs = 12;getLogprobs in interface Api.ParametersOrBuilderpublic com.google.protobuf.ProtocolStringList getStopList()
repeated string stop = 13;getStopList in interface Api.ParametersOrBuilderpublic int getStopCount()
repeated string stop = 13;getStopCount in interface Api.ParametersOrBuilderpublic String getStop(int index)
repeated string stop = 13;getStop in interface Api.ParametersOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getStopBytes(int index)
repeated string stop = 13;getStopBytes in interface Api.ParametersOrBuilderindex - The index of the value to return.public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Api.Parameters parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.Parameters parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.Parameters parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.Parameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.Parameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Api.Parameters parseFrom(InputStream input) throws IOException
IOExceptionpublic static Api.Parameters parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Api.Parameters parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Api.Parameters parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Api.Parameters parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Api.Parameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Api.Parameters.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Api.Parameters.Builder newBuilder()
public static Api.Parameters.Builder newBuilder(Api.Parameters prototype)
public Api.Parameters.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Api.Parameters.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Api.Parameters getDefaultInstance()
public static com.google.protobuf.Parser<Api.Parameters> parser()
public com.google.protobuf.Parser<Api.Parameters> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Api.Parameters getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025. All rights reserved.