mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
- Cap maximum cooldown for rate limit handling in account unavailability and single-model chat flows
- Dynamic custom model fetching for model selection
This commit is contained in:
@@ -39,6 +39,15 @@ export function getRotatedModels(models, comboName, strategy) {
|
||||
return rotatedModels;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset in-memory rotation state when combo/settings change
|
||||
* @param {string} [comboName] - Combo name to reset; omit to clear all
|
||||
*/
|
||||
export function resetComboRotation(comboName) {
|
||||
if (comboName) comboRotationState.delete(comboName);
|
||||
else comboRotationState.clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get combo models from combos data
|
||||
* @param {string} modelStr - Model string to check
|
||||
|
||||
Reference in New Issue
Block a user