public static interface Api.ChatReqOrBuilder
extends com.google.protobuf.MessageOrBuilder
限定符和类型 | 方法和说明 |
---|---|
boolean |
containsExtra(String key)
extra info
map<string, string> extra = 100; |
String |
getCryptoToken()
optional symmetric key to encrypt messages, the key itself is encrypted
with model's public key.
|
com.google.protobuf.ByteString |
getCryptoTokenBytes()
optional symmetric key to encrypt messages, the key itself is encrypted
with model's public key.
|
Map<String,String> |
getExtra()
已过时。
|
int |
getExtraCount()
extra info
map<string, string> extra = 100; |
Map<String,String> |
getExtraMap()
extra info
map<string, string> extra = 100; |
String |
getExtraOrDefault(String key,
String defaultValue)
extra info
map<string, string> extra = 100; |
String |
getExtraOrThrow(String key)
extra info
map<string, string> extra = 100; |
Api.Function |
getFunctions(int index)
optional list of functions the model may generate json inputs for.
|
int |
getFunctionsCount()
optional list of functions the model may generate json inputs for.
|
List<Api.Function> |
getFunctionsList()
optional list of functions the model may generate json inputs for.
|
Api.FunctionOrBuilder |
getFunctionsOrBuilder(int index)
optional list of functions the model may generate json inputs for.
|
List<? extends Api.FunctionOrBuilder> |
getFunctionsOrBuilderList()
optional list of functions the model may generate json inputs for.
|
Api.Message |
getMessages(int index)
User input prompt
repeated .api.Message messages = 2; |
int |
getMessagesCount()
User input prompt
repeated .api.Message messages = 2; |
List<Api.Message> |
getMessagesList()
User input prompt
repeated .api.Message messages = 2; |
Api.MessageOrBuilder |
getMessagesOrBuilder(int index)
User input prompt
repeated .api.Message messages = 2; |
List<? extends Api.MessageOrBuilder> |
getMessagesOrBuilderList()
User input prompt
repeated .api.Message messages = 2; |
String |
getMethod()
Method supports chat/tokenize/classification
string method = 9; |
com.google.protobuf.ByteString |
getMethodBytes()
Method supports chat/tokenize/classification
string method = 9; |
Api.Model |
getModel()
Used model for inference
.api.Model model = 1; |
Api.ModelOrBuilder |
getModelOrBuilder()
Used model for inference
.api.Model model = 1; |
Api.Parameters |
getParameters()
API specific parameters
.api.Parameters parameters = 3; |
Api.ParametersOrBuilder |
getParametersOrBuilder()
API specific parameters
.api.Parameters parameters = 3; |
String |
getPlugins(int index)
optional list of plugins the model may call.
|
com.google.protobuf.ByteString |
getPluginsBytes(int index)
optional list of plugins the model may call.
|
int |
getPluginsCount()
optional list of plugins the model may call.
|
List<String> |
getPluginsList()
optional list of plugins the model may call.
|
String |
getReqId()
Unified request id
string req_id = 5; |
com.google.protobuf.ByteString |
getReqIdBytes()
Unified request id
string req_id = 5; |
boolean |
getStream()
Whether use stream mode, if set, partial message deltas will be sent as
data-only server-sent events as they become available
The stream will be terminated by a data: [DONE]
bool stream = 4; |
boolean |
hasModel()
Used model for inference
.api.Model model = 1; |
boolean |
hasParameters()
API specific parameters
.api.Parameters parameters = 3; |
boolean hasModel()
Used model for inference
.api.Model model = 1;
Api.Model getModel()
Used model for inference
.api.Model model = 1;
Api.ModelOrBuilder getModelOrBuilder()
Used model for inference
.api.Model model = 1;
List<Api.Message> getMessagesList()
User input prompt
repeated .api.Message messages = 2;
Api.Message getMessages(int index)
User input prompt
repeated .api.Message messages = 2;
int getMessagesCount()
User input prompt
repeated .api.Message messages = 2;
List<? extends Api.MessageOrBuilder> getMessagesOrBuilderList()
User input prompt
repeated .api.Message messages = 2;
Api.MessageOrBuilder getMessagesOrBuilder(int index)
User input prompt
repeated .api.Message messages = 2;
boolean hasParameters()
API specific parameters
.api.Parameters parameters = 3;
Api.Parameters getParameters()
API specific parameters
.api.Parameters parameters = 3;
Api.ParametersOrBuilder getParametersOrBuilder()
API specific parameters
.api.Parameters parameters = 3;
boolean getStream()
Whether use stream mode, if set, partial message deltas will be sent as data-only server-sent events as they become available The stream will be terminated by a data: [DONE]
bool stream = 4;
String getReqId()
Unified request id
string req_id = 5;
com.google.protobuf.ByteString getReqIdBytes()
Unified request id
string req_id = 5;
String getCryptoToken()
optional symmetric key to encrypt messages, the key itself is encrypted with model's public key.
string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"];
com.google.protobuf.ByteString getCryptoTokenBytes()
optional symmetric key to encrypt messages, the key itself is encrypted with model's public key.
string crypto_token = 6 [(.api.header) = "Ml-Maas-Crypto-Token"];
List<Api.Function> getFunctionsList()
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
Api.Function getFunctions(int index)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
int getFunctionsCount()
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
List<? extends Api.FunctionOrBuilder> getFunctionsOrBuilderList()
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
Api.FunctionOrBuilder getFunctionsOrBuilder(int index)
optional list of functions the model may generate json inputs for.
repeated .api.Function functions = 7;
List<String> getPluginsList()
optional list of plugins the model may call.
repeated string plugins = 8;
int getPluginsCount()
optional list of plugins the model may call.
repeated string plugins = 8;
String getPlugins(int index)
optional list of plugins the model may call.
repeated string plugins = 8;
index
- The index of the element to return.com.google.protobuf.ByteString getPluginsBytes(int index)
optional list of plugins the model may call.
repeated string plugins = 8;
index
- The index of the value to return.String getMethod()
Method supports chat/tokenize/classification
string method = 9;
com.google.protobuf.ByteString getMethodBytes()
Method supports chat/tokenize/classification
string method = 9;
int getExtraCount()
extra info
map<string, string> extra = 100;
boolean containsExtra(String key)
extra info
map<string, string> extra = 100;
@Deprecated Map<String,String> getExtra()
getExtraMap()
instead.String getExtraOrDefault(String key, String defaultValue)
extra info
map<string, string> extra = 100;
Copyright © 2024. All rights reserved.