fix(volc_sync): add debug logs for balance display issues
This commit is contained in:
+12
-5
@@ -96,10 +96,10 @@ VOLC_MODEL_MAP = {
|
||||
|
||||
# Static Quotas (Fallback/Strict Limits)
|
||||
MODEL_QUOTAS = {
|
||||
# "deepseek-v3-2-251201:ba0383d3": 1600000,
|
||||
# "doubao-seed-1-8-251228:ba0383d3": 1800000,
|
||||
# "glm-4-7-251222:ba0383d3": 1800000,
|
||||
# "doubao-seed-1-8-251228:d57edef4": 1500000,
|
||||
# "deepseek-v3-2-251201:ba0383d3": 1600000,
|
||||
# "doubao-seed-1-8-251228:ba0383d3": 1800000,
|
||||
# "glm-4-7-251222:ba0383d3": 1800000,
|
||||
# "doubao-seed-1-8-251228:d57edef4": 1500000,
|
||||
}
|
||||
|
||||
# ==========================================
|
||||
@@ -464,8 +464,15 @@ class DailyLimitHandler(CustomLogger):
|
||||
rem_int = int(float(rem_val))
|
||||
bal_est = rem_int + BUFFER
|
||||
rem_display = f", Bal: {bal_est:,}"
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
print(
|
||||
f"DEBUG: Error calculating balance for {clean_model}: {e}"
|
||||
)
|
||||
pass
|
||||
else:
|
||||
# Debug why key is missing
|
||||
if DEBUG_MODE:
|
||||
print(f"DEBUG: Dynamic key not found: {dynamic_key}")
|
||||
|
||||
key_display = key.split(":", 2)[-1]
|
||||
log(
|
||||
|
||||
Reference in New Issue
Block a user