public class QWenConversationParam extends ConversationParam
| Constructor and Description |
|---|
QWenConversationParam() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildMessageBody(String protocol)
Build the message body by the protocol.
|
com.google.gson.JsonObject |
getParameters() |
Class<? extends ConversationResult> |
resultType()
Get the related server output structure, which should be a subclass of `ConversationResult`.
|
String |
url()
The url suffix to call the server side.
|
getMsgIdpublic static final String QWEN_V1
public com.google.gson.JsonObject getParameters()
public String url()
ConversationParamurl in class ConversationParampublic String buildMessageBody(String protocol)
ConversationParambuildMessageBody in class ConversationParamprotocol - The protocol, can be 'http' or 'websocket'.public Class<? extends ConversationResult> resultType()
ConversationParamresultType in class ConversationParamCopyright © 2023. All rights reserved.