mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-03 13:52:09 +03:00
- resolvePoolForSync now resolves groupName via getGroupName(pool.groupId), falling back to pool.name when the group record is missing. - Both quotaModelName calls in syncQuotaCombos use groupName instead of pool.name, so combos are named qtSd/<groupSlug>/<provider>/<model>. - Prune is now scoped to group+provider: syncing pool A (openrouter) never deletes pool B (baidu) combos that share the same group. - removeQuotaCombosForPool likewise scoped to group+provider. - Updated quota-combos-sync, quota-combo-balancing, quota-combo-cli-providers tests for the new group-slug naming. - New tests/unit/quota-combo-groups.test.ts: G1–G4 cover two-pool same-group naming, provider-scoped prune isolation, default-group fallback, and stale prune within the same group+provider.