Skip to content

Commit

Permalink
Fix Fallback System
Browse files Browse the repository at this point in the history
  • Loading branch information
TecEash1 committed May 26, 2024
1 parent c136745 commit f5e13f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions/other/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ async function handleGeminiError(err, loadingMsg) {
)
.setColor("Red");

const other = await db.get("other");
const loadBalance = other.loadBalancing;
if (loadBalance) {
const model = await db.get("model");
const fallbackSystem = model.fallbackSystem;
if (fallbackSystem) {
return "quotaErrorBalance";
} else {
for (let i = 5; i > 0; i--) {
Expand Down

0 comments on commit f5e13f4

Please sign in to comment.