Browse Source

添加ai对话框

xiaoguang_li 1 month ago
parent
commit
0b7404e759
1 changed files with 2 additions and 5 deletions
  1. 2 5
      desktop/core/src/desktop/templates/assist.mako

+ 2 - 5
desktop/core/src/desktop/templates/assist.mako

@@ -2722,9 +2722,6 @@ from desktop.views import _ko
               flex-direction: column;
               border-top: 1px solid #eee;
             }
-            .display-area::-webkit-scrollbar {
-
-            }
 
             .message {
               padding: 10px 14px;
@@ -2818,7 +2815,7 @@ from desktop.views import _ko
 
         self.activeType = ko.observable();
         self.availableTypes = ko.observableArray(window.IS_EMBEDDED ? ['Impala'] : ['Hive', 'Impala', 'Pig']);
-        self.query = ko.observable().extend({ rateLimit: 1000 });
+        self.query = ko.observable().extend({ rateLimit: 100 });
         self.messages = ko.observableArray([]);
 
         self.query.subscribe(function (newValue, oldValue) {
@@ -2886,7 +2883,7 @@ from desktop.views import _ko
         if (cleanQuery === '') {
             return
         }
-        self.query('');
+        event.target.value = '';
 
         self.messages.push({type:'user', content: cleanQuery});
         self.messages.push({type:'ai', content: '感谢提问!我已经收到你的消息:' + cleanQuery});