mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
simplify bingAI
This commit is contained in:
parent
e3f545c03f
commit
74511d89e0
1 changed files with 4 additions and 2 deletions
|
@ -5,7 +5,7 @@ var restart_button = document.getElementById('restart');
|
||||||
var input_text = document.getElementById('input');
|
var input_text = document.getElementById('input');
|
||||||
var send_button = document.getElementById('send');
|
var send_button = document.getElementById('send');
|
||||||
let restartNewChat = document.getElementById('restartNewChat');
|
let restartNewChat = document.getElementById('restartNewChat');
|
||||||
var thisChatType;
|
var thisChatType = chatTypes.balance;
|
||||||
|
|
||||||
reSetStartChatMessage();
|
reSetStartChatMessage();
|
||||||
|
|
||||||
|
@ -83,6 +83,9 @@ var isSpeaking = false;
|
||||||
|
|
||||||
/**重置聊天框和聊天建议到初始状态 */
|
/**重置聊天框和聊天建议到初始状态 */
|
||||||
function reSetStartChatMessage(type) {
|
function reSetStartChatMessage(type) {
|
||||||
|
createChat(thisChatType).then((r) => {
|
||||||
|
if(r.ok) talk = r.obj;
|
||||||
|
});
|
||||||
getChatHubWithMagic().then(async a => {
|
getChatHubWithMagic().then(async a => {
|
||||||
let t = 0;
|
let t = 0;
|
||||||
if (a == 'repeat') {
|
if (a == 'repeat') {
|
||||||
|
@ -105,7 +108,6 @@ function reSetStartChatMessage(type) {
|
||||||
restartNewChat.classList.add('onShow');
|
restartNewChat.classList.add('onShow');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
docTitle.innerText = 'NewBingGoGo:聊天啦啦啦啦';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**正在创建聊天 */
|
/**正在创建聊天 */
|
||||||
|
|
Loading…
Reference in a new issue