bingAI: minor optimization

This commit is contained in:
James Feng Cao 2023-04-06 23:26:29 +08:00
parent 3672627e81
commit c9f0db1c34
3 changed files with 3 additions and 15 deletions

View File

@ -38,7 +38,6 @@
<option>魔法聊天(较慢)(用魔法创建聊天后继续使用魔法聊天)</option>
</select>
</div>
<div id="body-top"></div>
<div style="text-align: center;">
<h3>chat with bing</h3>
</div>

View File

@ -211,11 +211,6 @@ body {
overflow-x: hidden;
}
#body-top {
height: 20vh;
width: 100%;
}
#body-bottom {
height: 15rem;
width: 100%;
@ -517,14 +512,6 @@ div.markdown-body {
/*手机 css*/
@media screen and (orientation:portrait) and (max-device-width:800px) and (max-device-height:1000px) {
:root {
font-size: 1rem;
}
div.markdown-body {
font-size: 1rem;
}
.InternalSearchQuery,
.InternalLoaderMessage {
width: 90%;

View File

@ -49,8 +49,10 @@ function onMessage(json, returnMessage) {
onMessageIsOKClose = true;
returnMessage.getCatWebSocket().close(1000, 'ok');
} else {
talk = undefined;
localStorage.removeItem('LastChatJson');
createChat(thisChatType).then((r) => {
if(r.ok) talk = r.obj;
});
if (json.type == 1) {
porserArguments(json.arguments);
} else if (json.type == 2) {