From efc56ca61fc2e486838694dbb67cb53331eb3738 Mon Sep 17 00:00:00 2001 From: xjs Date: Thu, 10 Apr 2025 11:46:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/config.ts | 2 +- src/pages/MainPage/MainArea/Antechamber/MyInput/index.tsx | 5 +++++ src/pages/MainPage/index.module.less | 8 +------- src/pages/MainPage/index.tsx | 3 --- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/config/config.ts b/src/config/config.ts index 7567b36..cad3041 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -124,7 +124,7 @@ export class ConfigFactory { MaxTokens: 1024, Temperature: 0.5, TopP: 0.3, - SystemMessages: [this.Prompt as string,'遇到*星或者星星这样的文字则使用()包裹起来'], + SystemMessages: [this.Prompt as string], UserMessages:[], Prefill: true, ModelName: this.Model, diff --git a/src/pages/MainPage/MainArea/Antechamber/MyInput/index.tsx b/src/pages/MainPage/MainArea/Antechamber/MyInput/index.tsx index 97e81d7..58ef77a 100644 --- a/src/pages/MainPage/MainArea/Antechamber/MyInput/index.tsx +++ b/src/pages/MainPage/MainArea/Antechamber/MyInput/index.tsx @@ -21,6 +21,10 @@ export default function MyInput({ toRoom }: Props) { await toRoom(); dispatch(setInitMsg(`我的高考地点在${provinceName},我选择的科目是${subjectGroup},我的高考分数为${expectedScore}分。我适合哪些学校和专业`)); }; + const handleReadWorld = async () => { + await toRoom(); + dispatch(setInitMsg(`这是我的文档地址https://static-data.ycymedu.com/pdf/663640899633221.pdf,读取它。并给出见解`)) + } return (
@@ -38,6 +42,7 @@ export default function MyInput({ toRoom }: Props) { right
+
测试阅读文档
); } diff --git a/src/pages/MainPage/index.module.less b/src/pages/MainPage/index.module.less index 227467d..d998ff0 100644 --- a/src/pages/MainPage/index.module.less +++ b/src/pages/MainPage/index.module.less @@ -6,19 +6,13 @@ .main { position: relative; width: 100%; - height: calc(100% - 48px); - display: flex; - flex-direction: row; - align-items: center; + height: 100%; box-sizing: border-box; .mainArea { position: relative; - width: calc(100% - 220px); height: 100%; - margin-right: 2%; background: linear-gradient( 180deg, #fff 0%, #eee 100%); - border-radius: 16px; overflow: hidden; } diff --git a/src/pages/MainPage/index.tsx b/src/pages/MainPage/index.tsx index 23ecae3..4b6f031 100644 --- a/src/pages/MainPage/index.tsx +++ b/src/pages/MainPage/index.tsx @@ -14,9 +14,6 @@ export default function () {