public class ConversationParam extends Param
| Constructor and Description |
|---|
ConversationParam() |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.gson.JsonObject |
getInput() |
protected com.google.gson.JsonObject |
getParameters() |
protected static com.google.gson.JsonArray |
prepareHistory(List<ChatMessage> history,
Integer nHistory) |
Class<? extends Result> |
resultType()
Get the related output class, which should be a subclass of `Result`.
|
Request |
toRequest(Protocol protocol) |
String |
url() |
getApiKey, getRequestIdprotected static com.google.gson.JsonArray prepareHistory(List<ChatMessage> history, Integer nHistory)
protected com.google.gson.JsonObject getInput()
protected com.google.gson.JsonObject getParameters()
public Class<? extends Result> resultType()
ParamresultType in class ParamCopyright © 2023. All rights reserved.