fit chat stop (#117)

This commit is contained in:
HCode authored and GitHub committed 2024-08-17 23:07:34 +08:00
1 parent d3d46b5f2f
commit 31cd8921ef
7 files changed
+65 -7

No files matched your search

+3 -1
View File
@@ -21,6 +21,7 @@ class ChatOperator {
'content-type': 'application/json'
},
baseURL: BASE_URL_API,
signal: options.signal,
responseType: 'stream',
onDownloadProgress: ({ event }: AxiosProgressEvent) => {
const response = event.target.response;
@@ -134,7 +135,8 @@ class ChatOperator {
authorization: `Bearer ${options.token}`,
'x-record-exempt': 'true'
},
baseURL: BASE_URL_API
baseURL: BASE_URL_API,
signal: options.signal
}
);
}