You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fu-hsi-service/src/main/resources/application-test.yml

97 lines
4.2 KiB
YAML

spring:
application:
name: fu-hsi-server
ai:
ollama:
base-url: http://192.168.10.70:11434
chat:
enabled: true
options:
model: qwen2.5:32b
# 控制模型在请求后加载到内存中的时间(稍微长一点的时间,避免重复加载浪费性能,加快处理速度)
keep_alive: 30m
# 例如0.3
temperature: 0.8
format: json
# 减少产生废话的可能性。较高的值例如100将给出更多样化的答案而较低的值例如10将更加保守。
top-k: 90
# 与top-k一起工作。较高的值例如0.95将导致更加多样化的文本而较低的值例如0.5)将生成更加集中和保守的文本。
top-p: 0.95
# 随机数种子,用于控制模型输出的随机性。
seed: 1
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.10.138:3306/nx_llm?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8
username: root
password: '123456'
initial-size: 5 # 初始化大小
min-idle: 10 # 最小连接数
max-active: 20 # 最大连接数
max-wait: 60000 # 获取连接时的最大等待时间
min-evictable-idle-time-millis: 300000 # 一个连接在池中最小生存的时间,单位是毫秒
time-between-eviction-runs-millis: 60000 # 多久才进行一次检测需要关闭的空闲连接,单位是毫秒
filters: stat,wall # 配置扩展插件stat-监控统计log4j-日志wall-防火墙防止SQL注入去掉后监控界面的sql无法统计
validation-query: SELECT 1 # 检测连接是否有效的 SQL语句为空时以下三个配置均无效
test-on-borrow: true # 申请连接时执行validationQuery检测连接是否有效默认true开启后会降低性能
test-on-return: true # 归还连接时执行validationQuery检测连接是否有效默认false开启后会降低性能
test-while-idle: true # 申请连接时如果空闲时间大于timeBetweenEvictionRunsMillis执行validationQuery检测连接是否有效默认false建议开启不影响性能
stat-view-servlet:
enabled: false # 是否开启 StatViewServlet
filter:
stat:
enabled: true # 是否开启 FilterStat默认true
log-slow-sql: true # 是否开启 慢SQL 记录默认false
slow-sql-millis: 5000 # 慢 SQL 的标准,默认 3000单位毫秒
merge-sql: false # 合并多个连接池的监控数据默认false
socket-timeout: 60000
query-timeout: 60000
transaction-query-timeout: 60000
data:
neo4j:
database: neo4j
neo4j:
uri: bolt://192.168.10.138:7687
authentication:
username: neo4j
password: 123456
minio:
endpoint: http:192.168.10.138:9002
accessKey: admin
secretKey: 12345678
bucketName: nxfuhsi
logging:
level:
org.springframework.ai: TRACE
langChain-chat:
url: http://113.128.242.110:7861
ocr:
url: http://192.168.10.138:8866/
pool:
max-size: 20
xxl:
job:
admin:
username: admin
password: 123456
addresses: http://192.168.10.138:8080/xxl-job-admin
accessToken: default_token
executor:
address:
appname: nx-llm-xxljob
ip:
port: 9999
logpath: /data/applogs/xxl-job/jobhandler
5 months ago
logretentiondays: 30
dify:
url: http://192.168.10.137/v1
dataset-auth: Bearer dataset-PLOwR22cFObxN1AlGM0QdBXT
app-auth: Bearer app-pMR3NUdDtTAcCiyGcohIMjVi