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