feat(ai): 集成多种大模型并支持会话记忆功能

- 新增 Ollama、智谱 AI 和 OpenAI 大模型接入配置- 实现基于 ChatMemory 的会话上下文管理
- 添加流式输出接口以提升响应体验
- 更新加密工具类密钥及测试数据
- 引入多个 AI 控制器用于不同模型的服务调用
- 在 pom.xml 中添加相关依赖项以支持多模型集成
This commit is contained in:
2025-10-21 22:33:19 +08:00
parent ef527aab00
commit bfbfdbc90d
9 changed files with 212 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import org.jasypt.util.text.AES256TextEncryptor;
public class EncryptorUtil {
public static void main(String[] args) {
AES256TextEncryptor textEncryptor = new AES256TextEncryptor();
textEncryptor.setPassword("password");
System.out.println(textEncryptor.encrypt("sk-xxxxxxxxxxxxxx"));
textEncryptor.setPassword("hanserwei");
System.out.println(textEncryptor.encrypt("sk-QXBlsyIonybNTcG5tt5GvmMpg2WpdMLPTvU55TXrt9urWpL8"));
}
}