public class QueryRewriteRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
QueryRewriteRequest() |
QueryRewriteRequest(QueryRewriteRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Message[] |
getMessages()
Get The multi-round historical conversation that needs to be rewritten.
|
String |
getModel()
Get Model name.
|
void |
setMessages(Message[] Messages)
Set The multi-round historical conversation that needs to be rewritten.
|
void |
setModel(String Model)
Set Model name.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public QueryRewriteRequest()
public QueryRewriteRequest(QueryRewriteRequest source)
public Message[] getMessages()
public void setMessages(Message[] Messages)
Messages
- The multi-round historical conversation that needs to be rewritten. Each round of historical conversation should include paired inputs of user (question) and assistant (answer). Due to the character limit of the model, a maximum of 4 rounds of conversations can be provided. The last round of conversation will be rewritten.public String getModel()
public void setModel(String Model)
Model
- Model name.Copyright © 2025. All rights reserved.