byt-lingxiao-ai 0.3.11 → 0.3.12
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
|
@@ -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}`
|