ai-chat-bot-interface 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ai-chat-bot-interface",
3
3
  "private": false,
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "description": "A AI chat bot interface. (private)",
package/src/App.vue CHANGED
@@ -4,7 +4,12 @@ import ChatUi from './ChatUi.vue';
4
4
 
5
5
  <template>
6
6
  <div style="width: 100vw; height: 100vh">
7
- <chat-ui bot-id="999" token="pat_8888" uid="262598" :show-header="true" />
7
+ <chat-ui
8
+ bot-id="7471093458661720104"
9
+ token="pat_2yVcSFJUZB6c9Kdcv9iktIVFeGRuzyK3bAJY6GcqKrdGxTdjKMd1iDB09ipJ6YX8"
10
+ uid="262598"
11
+ :show-header="true"
12
+ />
8
13
  </div>
9
14
  </template>
10
15
  <style></style>
package/src/ChatUi.less CHANGED
@@ -203,6 +203,8 @@
203
203
  }
204
204
  }
205
205
  &_text {
206
+ word-break: break-all;
207
+ white-space: pre-wrap;
206
208
  color: #666;
207
209
  font-size: 12px;
208
210
  font-weight: 400;
package/src/ChatUi.vue CHANGED
@@ -428,6 +428,7 @@ const chatConv = async (data) => {
428
428
  ) {
429
429
  historyList.value[idx].status = 'thinking';
430
430
  historyList.value[idx].reasoning_content += strObj.reasoning_content;
431
+ scrollToEnd();
431
432
  } else if (
432
433
  strObj.hasOwnProperty('content') &&
433
434
  strObj.hasOwnProperty('content_type') &&