From b2f40c7702a5019ceaa9f4e99d301e14f952e6d9 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Sun, 30 Mar 2025 11:53:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E6=96=B9=E4=BE=BF=E7=9A=84=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/ChatComponent.vue | 97 +++++++++++++++++++++++++--- web/src/views/SettingView.vue | 16 ++--- 2 files changed, 96 insertions(+), 17 deletions(-) diff --git a/web/src/components/ChatComponent.vue b/web/src/components/ChatComponent.vue index 8897f71d..5cf106ca 100644 --- a/web/src/components/ChatComponent.vue +++ b/web/src/components/ChatComponent.vue @@ -9,11 +9,29 @@ > - - - + + + + + {{ configStore.config?.model_provider }}/{{ configStore.config?.model_name }} + + +

模型配置

-

请在 src/.env 文件中配置对应的 APIKEY

+

请在 src/.env 文件中配置对应的 APIKEY,并重新启动服务

自定义模型

@@ -167,9 +167,9 @@
- @@ -550,7 +550,7 @@ const sendRestart = () => { .model-icon { width: 28px; height: 28px; - + // 灰度 filter: grayscale(100%); img { @@ -627,7 +627,7 @@ const sendRestart = () => { .icon-wrapper { display: inline-flex; transition: transform 0.2s ease; - + &.rotated { transform: rotate(180deg); } @@ -639,7 +639,7 @@ const sendRestart = () => { max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; // 先快后慢 - + &.expanded { max-height: 700px; /* 设置一个足够大的值 */ } @@ -710,7 +710,7 @@ const sendRestart = () => { flex: 1; margin-right: 8px; position: relative; - + &:hover::after { content: attr(title); position: absolute; From 164387e280bf4a387e568db36cc092365d1f0539 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Sun, 30 Mar 2025 12:01:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Gemfile | 5 +++-- docs/_config.yml | 4 ++-- docs/index.md | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/Gemfile b/docs/Gemfile index 6a854952..77bf5264 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -1,7 +1,8 @@ source "https://rubygems.org" gem "jekyll", "~> 4.3.2" -gem "just-the-docs", "~> 0.5.0" +# gem "just-the-docs", "~> 0.5.0" +gem "minima", "~> 2.5" group :jekyll_plugins do gem "jekyll-include-cache" @@ -22,4 +23,4 @@ gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin] # Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem # do not have a Java counterpart. -gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby] \ No newline at end of file +gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby] \ No newline at end of file diff --git a/docs/_config.yml b/docs/_config.yml index 32a0b5b8..8d9cb687 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,4 +1,4 @@ -remote_theme: just-the-docs/just-the-docs +# remote_theme: just-the-docs/just-the-docs url: https://xerrors.github.io/Yuxi-Know baseurl: /Yuxi-Know title: 语析 - 基于大模型的知识库与知识图谱问答系统 @@ -23,4 +23,4 @@ defaults: type: pages values: layout: home - search_exclude: true \ No newline at end of file + search_exclude: true \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index b8accc5e..2e4707da 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,5 +1,5 @@ --- -layout: home +layout: default title: 语析 - 基于大模型的知识库与知识图谱问答系统 nav_order: 1 description: "语析是一个强大的问答平台,结合了大模型 RAG 知识库与知识图谱技术,基于 Llamaindex + VueJS + FastAPI + Neo4j 构建。" @@ -133,4 +133,4 @@ docker tag m.daocloud.io/docker.io/library/neo4j:latest neo4j:latest ## 许可证 -本项目采用 MIT 许可证 - 详见 [LICENSE](LICENSE) 文件 \ No newline at end of file +本项目采用 MIT 许可证 - 详见 [LICENSE](LICENSE) 文件 \ No newline at end of file