public class OpenaiChatDialect extends AbstractChatDialect
| Constructor and Description |
|---|
OpenaiChatDialect() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildReqFunctionsNode(org.noear.snack.ONode n,
ChatConfig config,
ChatOptions options,
ChatMessage lastMessage) |
static OpenaiChatDialect |
instance() |
boolean |
matched(ChatConfig config)
匹配检测
|
boolean |
parseResponseJson(ChatConfig config,
boolean isStream,
ChatResponseDefault resp,
String json)
分析响应数据
|
buildChatMessageNode, buildChatMessageNodeDo, buildChatMessageNodeDo, buildChatMessageNodeDo, buildChatMessageNodeDo, buildReqFunctionParamNodeDo, buildReqFunctionsNodeDo, buildRequestJson, parseAssistantMessage, parseToolCallspublic static OpenaiChatDialect instance()
public boolean matched(ChatConfig config)
config - 聊天配置protected void buildReqFunctionsNode(org.noear.snack.ONode n,
ChatConfig config,
ChatOptions options,
ChatMessage lastMessage)
buildReqFunctionsNode in class AbstractChatDialectpublic boolean parseResponseJson(ChatConfig config, boolean isStream, ChatResponseDefault resp, String json)
ChatDialectconfig - 聊天配置Copyright © 2025. All rights reserved.