public interface ChatDialect extends AiModelDialect
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
buildRequestJson(ChatConfig config,
ChatOptions options,
java.util.List<ChatMessage> messages,
boolean stream)
构建请求数据
|
boolean |
matched(ChatConfig config)
匹配检测
|
boolean |
parseResponseJson(ChatConfig config,
boolean isStream,
ChatResponseDefault resp,
java.lang.String respJson)
分析响应数据
|
boolean matched(ChatConfig config)
config
- 聊天配置java.lang.String buildRequestJson(ChatConfig config, ChatOptions options, java.util.List<ChatMessage> messages, boolean stream)
config
- 聊天配置options
- 聊天选项boolean parseResponseJson(ChatConfig config, boolean isStream, ChatResponseDefault resp, java.lang.String respJson)
config
- 聊天配置