|
@@ -105,7 +105,8 @@ export class BigModelApi implements LLMApi {
|
|
|
if (finished || controller.signal.aborted) {
|
|
if (finished || controller.signal.aborted) {
|
|
|
responseText += remainText;
|
|
responseText += remainText;
|
|
|
if (responseText?.length === 0) {
|
|
if (responseText?.length === 0) {
|
|
|
- options.onError?.(new Error("empty response from server"));
|
|
|
|
|
|
|
+ // options.onError?.(new Error("empty response from server"));
|
|
|
|
|
+ options.onError?.(new Error("请求已中止,请检查网络环境。"));
|
|
|
}
|
|
}
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|