From aa0328a1cb3e3de2e4662e97715497b1d5049df3 Mon Sep 17 00:00:00 2001 From: sunxiqing <2240398334@qq.com> Date: Tue, 12 Aug 2025 08:55:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor(yudao-server):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE=E5=92=8C=20AIGC?= =?UTF-8?q?=20=E6=9C=8D=E5=8A=A1=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 Docker 开发环境和生产环境的数据库配置 - 更新 AIGC 服务地址为可配置的变量 -调整 RAG 服务相关配置 --- .../main/resources/application-docker-dev.yaml | 16 +++++++++------- .../src/main/resources/application-prod.yaml | 3 ++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/yudao-server/src/main/resources/application-docker-dev.yaml b/yudao-server/src/main/resources/application-docker-dev.yaml index b3063769f..cde11603c 100644 --- a/yudao-server/src/main/resources/application-docker-dev.yaml +++ b/yudao-server/src/main/resources/application-docker-dev.yaml @@ -46,14 +46,14 @@ spring: primary: master datasource: master: - url: jdbc:mysql://119.3.223.215:3306/xhllm?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8mb4 # MySQL Connector/J 8.X 连接的示例 - username: xhllm_user - password: XNJZ-xhllm_user-!#%246 + url: jdbc:mysql://36.103.199.248:3308/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8mb4 # MySQL Connector/J 8.X 连接的示例 + username: root + password: 123456 slave: # 模拟从库,可根据自己需要修改 lazy: true # 开启懒加载,保证启动速度 - url: jdbc:mysql://119.3.223.215:3306/xhllm?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8mb4 - username: xhllm_user - password: XNJZ-xhllm_user-!#%246 + url: jdbc:mysql://36.103.199.248:3308/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8mb4 + username: root + password: 123456 # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 redis: @@ -326,11 +326,13 @@ llm: # 自动评估 auto_evaluation: /llm-eval # 文生图 - text_to_image: http://36.103.199.248:5123/generate-image + text_to_image: ${AIGC_Service_URL}/generate-image # 检查点文件列表 check_file_list: /llm/finetuning/checkpoints?model_name= # 模型调优停止 POST stop_finetuning: /llm/finetuning/stop + # 请求地址 + request_address: ${AIGC_Service_URL} # 基座模型状态 POST base_model_status: ${AIGC_Service_URL}/llm/deploy/list # 模型部署 POST diff --git a/yudao-server/src/main/resources/application-prod.yaml b/yudao-server/src/main/resources/application-prod.yaml index d86c9f455..7f0772cd4 100644 --- a/yudao-server/src/main/resources/application-prod.yaml +++ b/yudao-server/src/main/resources/application-prod.yaml @@ -248,7 +248,6 @@ llm: backend: #################### 8123: RAG服务、训练集和标注相关API。 ################### ### RAG服务 - request_address: http://127.0.0.1:5123 #RAG健康检查 GET rag_health: http://127.0.0.1:8123/health #上传并向量化 POST @@ -327,6 +326,8 @@ llm: text_to_image: http://127.0.0.1:5123/generate-image # 检查点文件列表 check_file_list: /llm/finetuning/checkpoints?model_name= + # 请求地址 + request_address: http://127.0.0.1:5123 # 模型调优停止 POST stop_finetuning: /llm/finetuning/stop # 基座模型状态 POST