| Package | Description |
|---|---|
| org.noear.solon.ai.chat | |
| org.noear.solon.ai.chat.dialect | |
| org.noear.solon.ai.integration |
| 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.buildReqToolsNode(org.noear.snack.ONode n,
ChatConfig config,
ChatOptions options,
ChatMessage lastMessage) |
protected void |
AbstractChatDialect.buildReqToolsNode(org.noear.snack.ONode n,
ChatConfig config,
ChatOptions options,
ChatMessage lastMessage)
构建请求工具节点
|
String |
ChatDialect.buildRequestJson(ChatConfig config,
ChatOptions options,
List<ChatMessage> messages,
boolean isStream)
构建请求数据
|
String |
AbstractChatDialect.buildRequestJson(ChatConfig config,
ChatOptions options,
List<ChatMessage> messages,
boolean isStream) |
String |
DashscopeChatDialect.buildRequestJson(ChatConfig config,
ChatOptions options,
List<ChatMessage> messages,
boolean isStream) |
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,
ChatResponseDefault resp,
String respJson)
分析响应数据
|
boolean |
OllamaChatDialect.parseResponseJson(ChatConfig config,
ChatResponseDefault resp,
String json) |
boolean |
OpenaiChatDialect.parseResponseJson(ChatConfig config,
ChatResponseDefault resp,
String json) |
boolean |
DashscopeChatDialect.parseResponseJson(ChatConfig config,
ChatResponseDefault resp,
String json) |
static ChatDialect |
ChatDialectManager.select(ChatConfig config)
选择聊天方言
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,ChatConfig> |
AiProperties.getChat() |
Map<String,ChatConfig> |
AiProperties.getImage() |
| Modifier and Type | Method and Description |
|---|---|
void |
AiProperties.setChat(Map<String,ChatConfig> chat) |
void |
AiProperties.setImage(Map<String,ChatConfig> image) |
Copyright © 2025. All rights reserved.