public static final class Api.Parameters extends com.google.protobuf.GeneratedMessageV3 implements Api.ParametersOrBuilder
api.Parameters| 限定符和类型 | 类和说明 |
|---|---|
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| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 限定符和类型 | 方法和说明 |
|---|---|
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
optional int64 max_new_tokens = 6; |
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; |
long |
getMaxTokens()
The maximum number of tokens to generate in the char completion.
|
long |
getMinNewTokens()
the minimum number of tokens to generate
optional int64 min_new_tokens = 10; |
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]
optional float repetition_penalty = 7; |
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
optional float temperature = 1; |
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
optional float top_p = 3; |
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
optional int64 max_new_tokens = 6; |
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; |
boolean |
hasMaxTokens()
The maximum number of tokens to generate in the char completion.
|
boolean |
hasMinNewTokens()
the minimum number of tokens to generate
optional int64 min_new_tokens = 10; |
boolean |
hasPresencePenalty()
Number between -2.0 and 2.0.
|
boolean |
hasRepetitionPenalty()
The parameter for repetition penalty, from [1.0, 2.0]
optional float repetition_penalty = 7; |
boolean |
hasTemperature()
Exponential scaling output probability distribution
optional float temperature = 1; |
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
optional float top_p = 3; |
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, writeTopublic 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 在类中 com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public boolean hasTemperature()
Exponential scaling output probability distribution
optional float temperature = 1;hasTemperature 在接口中 Api.ParametersOrBuilderpublic float getTemperature()
Exponential scaling output probability distribution
optional float temperature = 1;getTemperature 在接口中 Api.ParametersOrBuilderpublic boolean hasMaxTokens()
The maximum number of tokens to generate in the char completion.
optional int64 max_tokens = 2;hasMaxTokens 在接口中 Api.ParametersOrBuilderpublic long getMaxTokens()
The maximum number of tokens to generate in the char completion.
optional int64 max_tokens = 2;getMaxTokens 在接口中 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 在接口中 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 在接口中 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 在接口中 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 在接口中 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 在接口中 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 在接口中 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 在接口中 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 在接口中 Api.ParametersOrBuilderpublic boolean hasRepetitionPenalty()
The parameter for repetition penalty, from [1.0, 2.0]
optional float repetition_penalty = 7;hasRepetitionPenalty 在接口中 Api.ParametersOrBuilderpublic float getRepetitionPenalty()
The parameter for repetition penalty, from [1.0, 2.0]
optional float repetition_penalty = 7;getRepetitionPenalty 在接口中 Api.ParametersOrBuilderpublic boolean hasDoSample()
Whether or not to use sampling, use greedy decoding otherwise. Default to false
optional bool do_sample = 8;hasDoSample 在接口中 Api.ParametersOrBuilderpublic boolean getDoSample()
Whether or not to use sampling, use greedy decoding otherwise. Default to false
optional bool do_sample = 8;getDoSample 在接口中 Api.ParametersOrBuilderpublic boolean hasTopK()
The number of highest probability vocabulary tokens to keep for top-k-filtering.
optional int64 top_k = 9;hasTopK 在接口中 Api.ParametersOrBuilderpublic long getTopK()
The number of highest probability vocabulary tokens to keep for top-k-filtering.
optional int64 top_k = 9;getTopK 在接口中 Api.ParametersOrBuilderpublic boolean hasMinNewTokens()
the minimum number of tokens to generate
optional int64 min_new_tokens = 10;hasMinNewTokens 在接口中 Api.ParametersOrBuilderpublic long getMinNewTokens()
the minimum number of tokens to generate
optional int64 min_new_tokens = 10;getMinNewTokens 在接口中 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 在接口中 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 在接口中 Api.ParametersOrBuilderpublic boolean hasLogprobs()
optional int64 logprobs = 12;hasLogprobs 在接口中 Api.ParametersOrBuilderpublic long getLogprobs()
optional int64 logprobs = 12;getLogprobs 在接口中 Api.ParametersOrBuilderpublic com.google.protobuf.ProtocolStringList getStopList()
repeated string stop = 13;getStopList 在接口中 Api.ParametersOrBuilderpublic int getStopCount()
repeated string stop = 13;getStopCount 在接口中 Api.ParametersOrBuilderpublic String getStop(int index)
repeated string stop = 13;getStop 在接口中 Api.ParametersOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getStopBytes(int index)
repeated string stop = 13;getStopBytes 在接口中 Api.ParametersOrBuilderindex - The index of the value to return.public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 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 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static Api.Parameters.Builder newBuilder()
public static Api.Parameters.Builder newBuilder(Api.Parameters prototype)
public Api.Parameters.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected Api.Parameters.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 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 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public Api.Parameters getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2025. All rights reserved.