public class DashscopeChatDialect extends AbstractChatDialect
| Constructor and Description |
|---|
DashscopeChatDialect() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildRequestJson(ChatConfig config,
ChatOptions options,
List<ChatMessage> messages,
boolean stream)
构建请求数据
|
static DashscopeChatDialect |
getInstance() |
boolean |
matched(ChatConfig config)
匹配检测
|
boolean |
parseResponseJson(ChatConfig config,
boolean isStream,
ChatResponseDefault resp,
String json)
分析响应数据
|
buildChatMessageNode, buildChatMessageNodeDo, buildChatMessageNodeDo, buildChatMessageNodeDo, buildChatMessageNodeDo, buildReqFunctionParamNodeDo, buildReqFunctionsNode, buildReqFunctionsNodeDo, parseAssistantMessage, parseToolCallspublic static DashscopeChatDialect getInstance()
public boolean matched(ChatConfig config)
config - 聊天配置public String buildRequestJson(ChatConfig config, ChatOptions options, List<ChatMessage> messages, boolean stream)
ChatDialectbuildRequestJson in interface ChatDialectbuildRequestJson in class AbstractChatDialectconfig - 聊天配置options - 聊天选项public boolean parseResponseJson(ChatConfig config, boolean isStream, ChatResponseDefault resp, String json)
ChatDialectconfig - 聊天配置Copyright © 2025. All rights reserved.