feat(ai): 集成 DeepSeek AI 对话功能并配置加密支持
- 添加 DeepSeek Chat 模型依赖及 starter - 配置 DeepSeek API Key 加密与基础 URL - 新增 DeepSeekChatController 实现基本对话接口 - 引入 Jasypt 加密库用于敏感信息加密 - 提供 EncryptorUtil 工具类用于生成加密密钥 - 更新 pom.xml 引入 spring-ai 和 jasypt 依赖管理
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
#file: noinspection SpringBootConfigYamlInspection
|
||||
spring:
|
||||
application:
|
||||
name: han-ai-robot-springboot
|
||||
name: han-ai-robot-springboot
|
||||
ai:
|
||||
deepseek:
|
||||
api-key: ENC(MROXdiEHmWk08koE63bTzFqW52MaXLpMkM9Cyl40Ubj+Lw1yKeZuHLEcs6jTFY8ditY4gJ1365LMAY8Z9G1uwfYFYaYdb3NyijplX7GuDZA=) # 填写 DeepSeek Api Key, 改成你自己的
|
||||
base-url: https://api.deepseek.com # DeepSeek 的请求 URL, 可不填,默认值为 api.deepseek.com
|
||||
chat:
|
||||
options:
|
||||
model: deepseek-chat # 使用哪个模型
|
||||
temperature: 0.8 # 温度值
|
||||
jasypt:
|
||||
encryptor:
|
||||
password: ${jasypt.encryptor.password}
|
||||
algorithm: PBEWithHMACSHA512AndAES_256
|
||||
iv-generator-classname: org.jasypt.iv.RandomIvGenerator
|
||||
Reference in New Issue
Block a user