From adebc2952a096c57b9f615eef4b0f9f8fbafda98 Mon Sep 17 00:00:00 2001 From: Liuyang <2746366019@qq.com> Date: Fri, 21 Feb 2025 14:20:21 +0800 Subject: [PATCH] =?UTF-8?q?env(ymx):=20=E6=9B=B4=E6=96=B0=20API=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E5=B9=B6=E8=B0=83=E6=95=B4=E6=97=A5=E5=BF=97=E7=BA=A7?= =?UTF-8?q?=E5=88=AB-=20=E5=B0=86=20RAG=20=E6=9C=8D=E5=8A=A1=E3=80=81?= =?UTF-8?q?=E5=A4=A7=E6=A8=A1=E5=9E=8B=E7=AE=A1=E7=90=86=E3=80=81=E5=BE=AE?= =?UTF-8?q?=E8=B0=83=E4=BB=BB=E5=8A=A1=E3=80=81=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=92=8C=E6=A8=A1=E5=9E=8B=E9=83=A8=E7=BD=B2=E7=AD=89?= =?UTF-8?q?=20API=E5=9C=B0=E5=9D=80=E4=BB=8E=E8=BF=9C=E7=A8=8B=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E6=94=B9=E4=B8=BA=E6=9C=AC=E5=9C=B0=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=20-=20=E5=9C=A8=20logback-spring.xml=20=E4=B8=AD?= =?UTF-8?q?=E5=B0=86=20ymx=20=E7=8E=AF=E5=A2=83=E6=B7=BB=E5=8A=A0=E5=88=B0?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20INFO=20=E6=97=A5=E5=BF=97=E7=BA=A7?= =?UTF-8?q?=E5=88=AB=E7=9A=84=E9=85=8D=E7=BD=AE=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-ymx.yaml | 34 +++++++++---------- .../src/main/resources/logback-spring.xml | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/yudao-server/src/main/resources/application-ymx.yaml b/yudao-server/src/main/resources/application-ymx.yaml index 025bbb192..73ef6f95c 100644 --- a/yudao-server/src/main/resources/application-ymx.yaml +++ b/yudao-server/src/main/resources/application-ymx.yaml @@ -249,23 +249,23 @@ llm: #################### 8123: RAG服务、训练集和标注相关API。 ################### ### RAG服务 #RAG健康检查 GET - rag_health: http://36.103.199.248:8123/health + rag_health: http://127.0.0.1:8123/health #上传并向量化 POST rag_embed: http://36.103.199.248:8123/embed #获取所有向量id GET - rag_ids: http://36.103.199.248:8123/ids + rag_ids: http://127.0.0.1:8123/ids #根据id获取文档 GET - rag_documents: http://36.103.199.248:8123/documents + rag_documents: http://127.0.0.1:8123/documents #根据id删除文档 DEL - rag_documents_del: http://36.103.199.248:8123/documents + rag_documents_del: http://127.0.0.1:8123/documents #根据file_id检索向量 POST - rag_query: http://36.103.199.248:8123/query + rag_query: http://127.0.0.1:8123/query #支持多个文件id查询向量 GET - rag_query_multiple: http://36.103.199.248:8123/query_multiple + rag_query_multiple: http://127.0.0.1:8123/query_multiple # 知识库向量嵌入 embed: http://36.103.199.248:8123/embed # 知识库查询 - embed_query: http://36.103.199.248:8123/query + embed_query: http://127.0.0.1:8123/query #### LLM train and service api 训练集、标注相关API # 训练集列表 GET @@ -283,22 +283,22 @@ llm: #################### 9000: 大模型管理、微调任务、文件上传和模型部署相关API。 ################### # 大模型列表 GET - models_list: http://36.103.199.248:9000/api/models + models_list: http://127.0.0.1:9000/api/models # 登录 POST - login: http://36.103.199.248:9000/api/auth/login - account: http://36.103.199.248:9000/api/auth/account + login: http://127.0.0.1:9000/api/auth/login + account: http://127.0.0.1:9000/api/auth/account login_username: admin login_password: admin # 微调任务详情 GET - finetuning_detail: http://36.103.199.248:9000/api/finetuning + finetuning_detail: http://127.0.0.1:9000/api/finetuning # 微调任务取消 - finetuning_cancel: http://36.103.199.248:9000/api/finetuning/%s/cancel + finetuning_cancel: http://127.0.0.1:9000/api/finetuning/%s/cancel # 微调文件列表 GET - finetuning_file_list: http://36.103.199.248:9000/api/files?purpose=fine-tune + finetuning_file_list: http://127.0.0.1:9000/api/files?purpose=fine-tune # 模型部署 - model_create: http://36.103.199.248:9000/api/models + model_create: http://127.0.0.1:9000/api/models # aigc模型推理 - aigc_model_completions: http://36.103.199.248:9000/api/channels/chat/completions + aigc_model_completions: http://127.0.0.1:9000/api/channels/chat/completions #################### 5123: 微调任务、模型部署、文件管理、提示词优化、自动评估、文生图等API。 ################### @@ -330,9 +330,9 @@ llm: #################### 30000: 大模型对话相关API。 ################### #### 大模型对话 # 模型列表 GET - base_model_list: http://36.103.199.248:30000/model/v1/models + base_model_list: http://127.0.0.1:30000/model/v1/models # 模型对话 POST - model_completions: http://36.103.199.248:30000/v1/chat/completions + model_completions: http://127.0.0.1:30000/v1/chat/completions #################### 48080: 应用和管理服务相关API。 ################### application_api: http://localhost:48080/admin-api/llm/application/api/apiKey/chat diff --git a/yudao-server/src/main/resources/logback-spring.xml b/yudao-server/src/main/resources/logback-spring.xml index b1b9f3faf..e89226758 100644 --- a/yudao-server/src/main/resources/logback-spring.xml +++ b/yudao-server/src/main/resources/logback-spring.xml @@ -65,7 +65,7 @@ - +