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.

44 lines
1.2 KiB
YAML

server:
port: 9908
servlet:
context-path: /ai-platform
spring:
application:
name: pdf-qa-server
datasource:
druid:
url: jdbc:postgresql://192.168.10.137:54321/ai-demo-platform
username: postgres
password: 123456
driver-class-name: org.postgresql.Driver
servlet:
multipart:
max-file-size: 10MB
max-request-size: 100MB
ai:
openai:
baseUrl: https://api.deepseek.com
apiKey: sk-0b2c506c47e74594b5361c0f6844fd25
chat:
options:
model: deepseek-chat
ollama:
baseUrl: http://192.168.10.70:11434
chat:
model: qwen3:30b-a3b
#model: qwen3:32b
options:
max_tokens: 51200
top_p: 0.9
top_k: 40
temperature: 0.7
timeout: 180000
embedding:
model: dengcao/Qwen3-Embedding-0.6B:F16
mybatis-plus:
mapper-locations: classpath*:mapper/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
jwt:
secret: "DlHaPUePiN6MyvpMpsMq/t6swzMHqtrRFd2YnofKz4k=" # JWT密钥 使用官方推荐方式生成 Base64.getEncoder().encodeToString(Keys.secretKeyFor(SignatureAlgorithm.HS256).getEncoded());
expiration: 86400000 # 1小时3600000 1天86400000