From 317294ed64cfd94161b196ae4159676d55790ae2 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Thu, 16 Oct 2025 10:56:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8A=E5=A4=A9=E6=A8=A1=E5=9E=8B=E5=92=8C?= =?UTF-8?q?=E5=B5=8C=E5=85=A5=E6=A8=A1=E5=9E=8B=E4=BD=BF=E7=94=A8=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E7=9A=84=E4=BE=9B=E5=BA=94=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/config/jeesite-cms-ai.yml | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/modules/cms-ai/src/main/resources/config/jeesite-cms-ai.yml b/modules/cms-ai/src/main/resources/config/jeesite-cms-ai.yml index d93b906a..99b83e29 100644 --- a/modules/cms-ai/src/main/resources/config/jeesite-cms-ai.yml +++ b/modules/cms-ai/src/main/resources/config/jeesite-cms-ai.yml @@ -13,23 +13,41 @@ spring: # 在线大模型【请在 pom.xml 中打开 openai 的注释,并注释上其它模型】 openai: - # 硅基流动 - base-url: https://api.siliconflow.cn - api-key: ${SFLOW_APP_KEY} - # 聊天对话模型 + # 聊天对话模型使用阿里百炼 chat: + base-url: https://dashscope.aliyuncs.com/compatible-mode + api-key: ${BAILIAN_APP_KEY} options: - model: deepseek-ai/DeepSeek-R1-Distill-Qwen-7B + model: deepseek-r1-distill-llama-8b max-tokens: 1024 temperature: 0.6 - top-p: 0.9 + top-p: 0.7 frequency-penalty: 0 - # 向量库知识库模型(注意:不同的模型维度不同) + # 嵌入向量模型使用硅基流动 embedding: + base-url: https://api.siliconflow.cn + api-key: ${SFLOW_APP_KEY} options: model: BAAI/bge-m3 dimensions: 512 +# # 硅基流动 +# base-url: https://api.siliconflow.cn +# api-key: ${SFLOW_APP_KEY} +# # 聊天对话模型 +# chat: +# options: +# model: deepseek-ai/DeepSeek-R1-Distill-Qwen-7B +# max-tokens: 1024 +# temperature: 0.6 +# top-p: 0.9 +# frequency-penalty: 0 +# # 向量库知识库模型(注意:不同的模型维度不同) +# embedding: +# options: +# model: BAAI/bge-m3 +# dimensions: 512 + # # 模力方舟 # base-url: https://ai.gitee.com # api-key: ${GITEE_APP_KEY} @@ -41,7 +59,6 @@ spring: # temperature: 0.6 # top-p: 0.9 # frequency-penalty: 0 -# #logprobs: true # # 向量库知识库模型(注意:不同的模型维度不同) # embedding: # options: @@ -59,7 +76,6 @@ spring: # temperature: 0.6 # top-p: 0.9 # frequency-penalty: 0 -# #logprobs: true # # 向量库知识库模型(注意:不同的模型维度不同) # embedding: # options: