| Package | Description |
|---|---|
| org.noear.solon.ai.chat | |
| org.noear.solon.ai.chat.dialect |
| Modifier and Type | Method and Description |
|---|---|
static ChatModel.Builder |
ChatModel.of(ChatConfig config)
构建
|
| Constructor and Description |
|---|
Builder(ChatConfig config) |
ChatModel(ChatConfig config) |
ChatRequestDefault(ChatConfig config,
ChatDialect dialect,
List<ChatMessage> messages) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
OpenaiChatDialect.buildReqFunctionsNode(org.noear.snack.ONode n,
ChatConfig config,
ChatOptions options,
ChatMessage lastMessage) |
protected void |
AbstractChatDialect.buildReqFunctionsNode(org.noear.snack.ONode n,
ChatConfig config,
ChatOptions options,
ChatMessage lastMessage) |
String |
ChatDialect.buildRequestJson(ChatConfig config,
ChatOptions options,
List<ChatMessage> messages,
boolean stream)
构建请求数据
|
String |
AbstractChatDialect.buildRequestJson(ChatConfig config,
ChatOptions options,
List<ChatMessage> messages,
boolean stream) |
String |
DashscopeChatDialect.buildRequestJson(ChatConfig config,
ChatOptions options,
List<ChatMessage> messages,
boolean stream) |
boolean |
ChatDialect.matched(ChatConfig config)
匹配检测
|
boolean |
OllamaChatDialect.matched(ChatConfig config)
匹配检测
|
boolean |
OpenaiChatDialect.matched(ChatConfig config)
匹配检测
|
boolean |
DashscopeChatDialect.matched(ChatConfig config)
匹配检测
|
boolean |
ChatDialect.parseResponseJson(ChatConfig config,
boolean isStream,
ChatResponseDefault resp,
String respJson)
分析响应数据
|
boolean |
OllamaChatDialect.parseResponseJson(ChatConfig config,
boolean isStream,
ChatResponseDefault resp,
String json) |
boolean |
OpenaiChatDialect.parseResponseJson(ChatConfig config,
boolean isStream,
ChatResponseDefault resp,
String json) |
boolean |
DashscopeChatDialect.parseResponseJson(ChatConfig config,
boolean isStream,
ChatResponseDefault resp,
String json) |
static ChatDialect |
ChatDialectManager.select(ChatConfig config)
选择聊天方言
|
Copyright © 2025. All rights reserved.