public class ConversationParam extends Param
| 构造器和说明 |
|---|
ConversationParam() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 ParamCopyright © 2023. All rights reserved.