byt-lingxiao-ai 0.3.11 → 0.3.13

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/dist/index.umd.js CHANGED
@@ -31325,7 +31325,7 @@ const TIME_JUMP_POINTS_URL = '/minio/lingxiaoai/timeJumpPoints.json'; // 语音u
31325
31325
  methods: {
31326
31326
  initWebSocket() {
31327
31327
  try {
31328
- this.ws = new WebSocket(this.wsUrl);
31328
+ this.ws = new WebSocket('ws://10.2.233.41:9999');
31329
31329
  this.ws.binaryType = 'arraybuffer';
31330
31330
  this.ws.onopen = async () => {
31331
31331
  console.log('WebSocket 连接成功');
@@ -31623,11 +31623,13 @@ const getCookie = cname => {
31623
31623
 
31624
31624
  // 重置解析器
31625
31625
  this.streamParser.reset();
31626
+ const controller = new AbortController();
31626
31627
  try {
31627
31628
  const startTime = Date.now();
31628
31629
  const token = getCookie('bonyear-access_token') || `44e7f112-63f3-429d-908d-2c97ec380de2`;
31629
31630
  const response = await fetch(API_URL, {
31630
31631
  method: 'POST',
31632
+ signal: controller.signal,
31631
31633
  headers: {
31632
31634
  'Content-Type': 'application/json',
31633
31635
  'Authorization': `Bearer ${token}`