chore: 添加 Spring AI 配置

This commit is contained in:
Ray.Hao
2025-11-14 21:59:55 +08:00
parent 0bcaf93193
commit 33e15217f7
2 changed files with 47 additions and 65 deletions

View File

@@ -50,6 +50,29 @@ spring:
enable: true
# 邮件发送者
from: youlaitech@163.com
# Spring AI 配置
ai:
openai:
# API Key
api-key: ${DASHSCOPE_API_KEY:sk-c2941d05bf2f411ca80424fxxxxxxxx}
# Base URL
base-url: https://dashscope.aliyuncs.com/compatible-mode
# Chat 模型配置
chat:
enabled: true
options:
# 模型名称qwen-plus、qwen-turbo、qwen-max、qwen-long
model: qwen-plus
# Temperature0.0-1.0,值越高回答越随机)
temperature: 0.7
# JSON 输出格式(确保模型返回合法 JSON
response-format:
type: json_object
mybatis-plus:
mapper-locations: classpath*:/mapper/**/*.xml
global-config:
@@ -234,7 +257,7 @@ ai:
# 阿里通义千问(推荐:有免费额度)
qwen:
# API Keyhttps://bailian.console.aliyun.com/ 获取)
api-key: ${QWEN_API_KEY:sk-c2941d05bf2f411ca80424fcxxxxxxxx}
api-key: ${QWEN_API_KEY:sk-c2941d05bf2f411ca80424fcd1eb4e07}
# Base URLOpenAI 兼容端点)
base-url: https://dashscope.aliyuncs.com/compatible-mode/v1
@@ -269,7 +292,7 @@ ai:
enable-audit: true
dangerous-operations-confirm: true
function-whitelist:
- deleteUser
- getUserInfo
- updateUser
- queryUsers
- assignRole