fix 'unusual query volume' check

This commit is contained in:
被遗忘的记忆
2024-10-29 23:47:15 +08:00
committed by GitHub
parent 181cc5203b
commit 4ebf967839
-4
View File
@@ -529,9 +529,6 @@ class YouProvider {
} }
checkAndSwitchMode() { checkAndSwitchMode() {
// 如果当前模式不可用
if (!this.modeStatus[this.currentMode]) {
const availableModes = Object.keys(this.modeStatus).filter(mode => this.modeStatus[mode]); const availableModes = Object.keys(this.modeStatus).filter(mode => this.modeStatus[mode]);
if (availableModes.length === 0) { if (availableModes.length === 0) {
@@ -542,7 +539,6 @@ class YouProvider {
this.rotationEnabled = false; this.rotationEnabled = false;
} }
} }
}
async getCompletion({username, messages, stream = false, proxyModel, useCustomMode = false}) { async getCompletion({username, messages, stream = false, proxyModel, useCustomMode = false}) {
if (this.networkMonitor.isNetworkBlocked()) { if (this.networkMonitor.isNetworkBlocked()) {