From c1cbfc2b93678bf47baf02b116a7aaa81f3473cf Mon Sep 17 00:00:00 2001
From: ageerle <ageerle@163.com>
Date: 星期五, 07 二月 2025 10:34:31 +0800
Subject: [PATCH] 2.0版本

---
 ruoyi-admin/src/main/resources/application.yml |  169 ++++++++++++++++++++++++++------------------------------
 1 files changed, 79 insertions(+), 90 deletions(-)

diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml
index cded7aa..491dea5 100644
--- a/ruoyi-admin/src/main/resources/application.yml
+++ b/ruoyi-admin/src/main/resources/application.yml
@@ -1,7 +1,8 @@
+
 # 椤圭洰鐩稿叧閰嶇疆
 ruoyi:
   # 鍚嶇О
-  name: "xmzs"
+  name: "ruoyi"
   # 鐗堟湰
   version: ${revision}
   # 鐗堟潈骞翠唤
@@ -48,7 +49,7 @@
 # 鏃ュ織閰嶇疆
 logging:
   level:
-    com.xmzs: '@logging.level@'
+    org.ruoyi: @logging.level@
     org.springframework: warn
   config: classpath:logback-plus.xml
 
@@ -69,14 +70,14 @@
     # 鍥介檯鍖栬祫婧愭枃浠惰矾寰�
     basename: i18n/messages
   profiles:
-    active: '@profiles.active@'
+    active: @profiles.active@
   # 鏂囦欢涓婁紶
   servlet:
     multipart:
       # 鍗曚釜鏂囦欢澶у皬
-      max-file-size: 10MB
+      max-file-size: 50MB
       # 璁剧疆鎬讳笂浼犵殑鏂囦欢澶у皬
-      max-request-size: 20MB
+      max-request-size: 200MB
   mvc:
     format:
       date-time: yyyy-MM-dd HH:mm:ss
@@ -117,8 +118,7 @@
 security:
   # 鎺掗櫎璺緞
   excludes:
-    # 淇敼鐢ㄦ埛澶村儚
-    - /system/user/edit/avatar
+    # 鏀粯鍥炶皟
     - /pay/returnUrl
     - /pay/notifyUrl
     # 涓婁紶鏂囦欢
@@ -160,11 +160,11 @@
 mybatis-plus:
   # 涓嶆敮鎸佸鍖�, 濡傛湁闇�瑕佸彲鍦ㄦ敞瑙i厤缃� 鎴� 鎻愬崌鎵寘绛夌骇
   # 渚嬪 com.**.**.mapper
-  mapperPackage: com.xmzs.**.mapper
+  mapperPackage: org.ruoyi.**.mapper
   # 瀵瑰簲鐨� XML 鏂囦欢浣嶇疆
   mapperLocations: classpath*:mapper/**/*Mapper.xml
   # 瀹炰綋鎵弿锛屽涓猵ackage鐢ㄩ�楀彿鎴栬�呭垎鍙峰垎闅�
-  typeAliasesPackage: com.xmzs.**.domain
+  typeAliasesPackage: org.ruoyi.**.domain
   # 鍚姩鏃舵槸鍚︽鏌� MyBatis XML 鏂囦欢鐨勫瓨鍦紝榛樿涓嶆鏌�
   checkConfigLocation: false
   configuration:
@@ -245,13 +245,13 @@
   #杩欓噷瀹氫箟浜嗕袱涓垎缁勶紝鍙畾涔夊涓紝涔熷彲浠ヤ笉瀹氫箟
   group-configs:
     - group: 1.婕旂ず妯″潡
-      packages-to-scan: com.xmzs.demo
+      packages-to-scan: org.ruoyi.demo
     - group: 2.閫氱敤妯″潡
-      packages-to-scan: com.xmzs.web
+      packages-to-scan: org.ruoyi.web
     - group: 3.绯荤粺妯″潡
-      packages-to-scan: com.xmzs.system
+      packages-to-scan: org.ruoyi.system
     - group: 4.浠g爜鐢熸垚妯″潡
-      packages-to-scan: com.xmzs.generator
+      packages-to-scan: org.ruoyi.generator
 
 # 闃叉XSS鏀诲嚮
 xss:
@@ -290,9 +290,9 @@
     logfile:
       external-file: ./logs/sys-console.log
 
---- # websocket
+# websocket
 websocket:
-  enabled: false
+  enabled: true
   # 璺緞
   path: ''
   # 璁剧疆璁块棶婧愬湴鍧�
@@ -307,83 +307,72 @@
         token: #寰俊灏忕▼搴忔秷鎭湇鍔″櫒閰嶇疆鐨則oken
         aesKey: #寰俊灏忕▼搴忔秷鎭湇鍔″櫒閰嶇疆鐨凟ncodingAESKey
         msgDataFormat: JSON
-baidu:
-  # 鏄惁寮�鍚枃鏈鏍�
-  enabled: false
-  # 鏂囨湰瀹℃牳
-  textReview:
-    apiKey: '' # apiKey
-    secretKey: '' # secretKey
-  appKey: xxxxxxxxxxxxxxxxx
-  secretKey: xxxxxxxxxxxxxxxxxxxxxxx
 
-wechat:
-  #  鏄惁浣跨敤寰俊 true/false
-  enable: true
-  #  鐢熸垚鐨勭櫥褰曚簩缁寸爜璺緞 榛樿涓庨」鐩悓绾�
-  qrPath: "./"
+# 鐭ヨ瘑搴撻厤缃�
+chain:
+  split:
+    chunk:
+      endspliter: "<STOP>"
+      # 鍒嗗潡鏂囨湰澶у皬
+      size: 500
+      overlay: 0
+      qaspliter: "######"
+  # 鐭ヨ瘑搴撲腑妫�绱㈢殑鏉℃暟
+  limits: 5
+  vectorization:
+    type: openai
+    openai:
+      model: 'text-embedding-3-small'
+    baidu:
+      model: bge-large-zh
+    zhipu:
+      model: embedding-2
+      # 鏅烘櫘API KEY
+      token: xx
+  vector:
+    store:
+      type: weaviate
+      weaviate:
+        protocol: http
+        host: 127.0.0.1:6038
+        classname: LocalKnowledge
+      milvus:
+        host: 127.0.0.1
+        port: 19530
+        dimension: 1536
+        collection: LocalKnowledge
+  llm:
+    openai:
+      token: sk-xx
+      model: gpt-4-1106-preview
+    chatglm:
+      baseurl: http://127.0.0.1:8000/
+      model: chatglm2-6b
+    baidu:
+      appKey: xx
+      secretKey: xx
+      model: ernie_bot
+    zhipu:
+      model: glm-4
+    audio:
+      type: openai
+    text:
+      type: openai
+    function:
+      type: baidu
+    vision:
+      type: openai
+    image:
+      type: openai
 
-keyword:
-  #  閲嶇疆浼氳瘽鎸囦护
-  reset: "閲嶇疆浼氳瘽"
-  #  ai鐢诲浘鎸囦护(DALL路E妯″瀷 https://platform.openai.com/docs/models/dall-e)
-  #  generation 鏍规嵁鍏抽敭璇嶇敓鎴愬浘鐗�(https://platform.openai.com/docs/guides/images/generations)
-  image: "ai鐢诲浘"
-  #  ai璇煶鎸囦护(TTS妯″瀷 https://platform.openai.com/docs/api-reference/audio)
-  audio: "ai璇煶"
+upload:
+  path: /data/upload
 
-#缁樼敾浠锋牸閰嶇疆(鍏�)
-mj:
-  # 鏀惧ぇ
-  upsample: 0.1
-  # 鍙樺寲
-  change: 0.3
-  # 鍥剧敓鍥�
-  blend: 0.3
-  # 鍥剧敓鏂�
-  describe: 0.1
-  # 鏂囩敓鍥�
-  imagine: 0.3
-  # 灞�閮ㄩ噸缁�
-  inpaint: 0.3
-  # 鎻愮ず璇嶅垎鏋�
-  shorten: 0.1
-  # 鎹㈣劯
-  faceSwapping: 0.3
+proxy:
+  socket:
+    host: 127.0.0.1
+    port: 7890
 
---- # mail 閭欢鍙戦��
-mail:
-  enabled: true
-  host: smtp.163.com
-  port: 465
-  # 鏄惁闇�瑕佺敤鎴峰悕瀵嗙爜楠岃瘉
-  auth: true
-  # 鍙戦�佹柟锛岄伒寰猂FC-822鏍囧噯
-  from: ageerle@163.com
-  # 鐢ㄦ埛鍚嶏紙娉ㄦ剰锛氬鏋滀娇鐢╢oxmail閭锛屾澶剈ser涓簈q鍙凤級
-  user: ageerle@163.com
-  # 瀵嗙爜锛堝~鍐欐巿鏉冪爜锛�
-  pass: ${MAIL_PASS}
-  # 浣跨敤 STARTTLS瀹夊叏杩炴帴锛孲TARTTLS鏄绾枃鏈�氫俊鍗忚鐨勬墿灞曘��
-  starttlsEnable: true
-  # 浣跨敤SSL瀹夊叏杩炴帴
-  sslEnable: true
-  # SMTP瓒呮椂鏃堕暱锛屽崟浣嶆绉掞紝缂虹渷鍊间笉瓒呮椂
-  timeout: 0
-  # Socket杩炴帴瓒呮椂鍊硷紝鍗曚綅姣锛岀己鐪佸�间笉瓒呮椂
-  connectionTimeout: 0
+resource:
+  domain: http://127.0.0.1:${server.port}/resources
 
-# chatgpt鍜宮j鍏辩敤涓�涓猭ey
-chat:
-  apiKey: ${CHAT_API_KEY}
-  apiHost: ${CHAT_API_HOST}
-# 鏀粯閰嶇疆淇℃伅
-pay:
-  pid: ${PAY_PID}
-  key: ${PAY_KEY}
-  payUrl: 'https://pay.pandarobot.chat/mapi.php'
-  notify_url: 'https://www.pandarobot.chat/pay/returnUrl'
-  return_url: 'https://www.pandarobot.chat/pay/notifyUrl'
-  type: 'wxpay'
-  device: 'pc'
-  sign_type: 'MD5'

--
Gitblit v1.9.3