fix: 页面布局
parent
3f1d3b4134
commit
efc56ca61f
|
|
@ -124,7 +124,7 @@ export class ConfigFactory {
|
||||||
MaxTokens: 1024,
|
MaxTokens: 1024,
|
||||||
Temperature: 0.5,
|
Temperature: 0.5,
|
||||||
TopP: 0.3,
|
TopP: 0.3,
|
||||||
SystemMessages: [this.Prompt as string,'遇到*星或者星星这样的文字则使用()包裹起来'],
|
SystemMessages: [this.Prompt as string],
|
||||||
UserMessages:[],
|
UserMessages:[],
|
||||||
Prefill: true,
|
Prefill: true,
|
||||||
ModelName: this.Model,
|
ModelName: this.Model,
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,10 @@ export default function MyInput({ toRoom }: Props) {
|
||||||
await toRoom();
|
await toRoom();
|
||||||
dispatch(setInitMsg(`我的高考地点在${provinceName},我选择的科目是${subjectGroup},我的高考分数为${expectedScore}分。我适合哪些学校和专业`));
|
dispatch(setInitMsg(`我的高考地点在${provinceName},我选择的科目是${subjectGroup},我的高考分数为${expectedScore}分。我适合哪些学校和专业`));
|
||||||
};
|
};
|
||||||
|
const handleReadWorld = async () => {
|
||||||
|
await toRoom();
|
||||||
|
dispatch(setInitMsg(`这是我的文档地址https://static-data.ycymedu.com/pdf/663640899633221.pdf,读取它。并给出见解`))
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={style.scoreWrapper}>
|
<div className={style.scoreWrapper}>
|
||||||
|
|
@ -38,6 +42,7 @@ export default function MyInput({ toRoom }: Props) {
|
||||||
<img src={RightBlueIcon} alt="right" className={style.rightBlue} />
|
<img src={RightBlueIcon} alt="right" className={style.rightBlue} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div onClick={handleReadWorld}>测试阅读文档</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,19 +6,13 @@
|
||||||
.main {
|
.main {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 48px);
|
height: 100%;
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.mainArea {
|
.mainArea {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: calc(100% - 220px);
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin-right: 2%;
|
|
||||||
background: linear-gradient( 180deg, #fff 0%, #eee 100%);
|
background: linear-gradient( 180deg, #fff 0%, #eee 100%);
|
||||||
border-radius: 16px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,6 @@ export default function () {
|
||||||
<ResizeWrapper className={styles.container}>
|
<ResizeWrapper className={styles.container}>
|
||||||
<div
|
<div
|
||||||
className={styles.main}
|
className={styles.main}
|
||||||
style={{
|
|
||||||
padding: utils.isMobile() ? '' : '24px 124px',
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<div className={`${styles.mainArea} ${utils.isMobile() ? styles.isMobile : ''}`}>
|
<div className={`${styles.mainArea} ${utils.isMobile() ? styles.isMobile : ''}`}>
|
||||||
<MainArea />
|
<MainArea />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue