public class OpenaiChatDialect extends AbstractChatDialect
| Constructor and Description |
|---|
OpenaiChatDialect() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildReqToolsNode(org.noear.snack.ONode n,
ChatConfig config,
ChatOptions options,
ChatMessage lastMessage)
构建请求工具节点
|
static OpenaiChatDialect |
instance() |
boolean |
matched(ChatConfig config)
匹配检测
|
boolean |
parseResponseJson(ChatConfig config,
ChatResponseDefault resp,
String json)
分析响应数据
|
buildAssistantMessageNode, buildChatMessageNode, buildChatMessageNodeDo, buildChatMessageNodeDo, buildChatMessageNodeDo, buildChatMessageNodeDo, buildReqToolsNodeDo, buildRequestJson, parseAssistantMessage, parseToolCall, parseToolCallspublic static OpenaiChatDialect instance()
public boolean matched(ChatConfig config)
config - 聊天配置protected void buildReqToolsNode(org.noear.snack.ONode n,
ChatConfig config,
ChatOptions options,
ChatMessage lastMessage)
AbstractChatDialectbuildReqToolsNode in class AbstractChatDialectpublic boolean parseResponseJson(ChatConfig config, ChatResponseDefault resp, String json)
ChatDialectconfig - 聊天配置Copyright © 2025. All rights reserved.