public interface ChatDialect extends AiModelDialect
| Modifier and Type | Method and Description |
|---|---|
String |
buildRequestJson(ChatConfig config,
ChatOptions options,
List<ChatMessage> messages,
boolean stream)
构建请求数据
|
boolean |
matched(ChatConfig config)
匹配检测
|
boolean |
parseResponseJson(ChatConfig config,
boolean isStream,
ChatResponseDefault resp,
String respJson)
分析响应数据
|
boolean matched(ChatConfig config)
config - 聊天配置String buildRequestJson(ChatConfig config, ChatOptions options, List<ChatMessage> messages, boolean stream)
config - 聊天配置options - 聊天选项boolean parseResponseJson(ChatConfig config, boolean isStream, ChatResponseDefault resp, String respJson)
config - 聊天配置Copyright © 2025. All rights reserved.