mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
bingAI fix
This commit is contained in:
parent
6ae4b1bb30
commit
8f2c1c9ad0
7 changed files with 23 additions and 25 deletions
|
@ -17,7 +17,7 @@
|
|||
<input id="restartNewChat" class="onShow" type="button" value="new chat">
|
||||
<input id="restart" type="button" value="🧹">
|
||||
<div id="input-div">
|
||||
<textarea id="input" type="text" enterkeyhint="send" maxlength="2000" autocapitalize="off" autocomplete="off" aria-autocomplete="both" spellcheck="false" aria-label="ask Bing" autocorrect="off" placeholder="type question here..."></textarea>
|
||||
<textarea id="input" type="text" enterkeyhint="send" autocapitalize="off" autocomplete="off" aria-autocomplete="both" spellcheck="false" aria-label="ask Bing" autocorrect="off" placeholder="type question here..."></textarea>
|
||||
<input id="send" type="button" value="✓">
|
||||
</div>
|
||||
|
||||
|
|
|
@ -7,6 +7,11 @@ var send_button = document.getElementById('send');
|
|||
let restartNewChat = document.getElementById('restartNewChat');
|
||||
var thisChatType = chatTypes.balance;
|
||||
|
||||
//全局变量
|
||||
var talk;
|
||||
var returnMessage;
|
||||
var isSpeaking = false;
|
||||
|
||||
reSetStartChatMessage();
|
||||
|
||||
//(string)
|
||||
|
@ -49,7 +54,6 @@ function onMessage(json, returnMessage) {
|
|||
onMessageIsOKClose = true;
|
||||
returnMessage.getCatWebSocket().close(1000, 'ok');
|
||||
} else {
|
||||
talk = undefined;
|
||||
localStorage.removeItem('LastChatJson');
|
||||
if (json.type == 1) {
|
||||
porserArguments(json.arguments);
|
||||
|
@ -78,13 +82,6 @@ input_text.addEventListener('keydown', (event) => {
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
//全局变量
|
||||
var talk;
|
||||
var returnMessage;
|
||||
var isSpeaking = false;
|
||||
|
||||
|
||||
/**重置聊天框和聊天建议到初始状态 */
|
||||
function reSetStartChatMessage(type) {
|
||||
createChat(thisChatType).then((r) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue