Expand description
Account selection: which account serves a session the gateway has no binding for.
The walk is the orgโs accounts list then fallback_accounts,
filtered by declared models: the first account whose models list
includes the requested model wins. Within the surviving set the
first account in walk order wins, with saturation demoting an
account to a later tier: ready beats saturated, and a Bailed
account is the last resort (its 429 hit the usage probe, not
inference).
Re-exportsยง
use crate::account::AccountKey;๐use crate::account::AccountStateMap;๐use crate::account::LoadingState;๐use crate::account::account_serves;๐
Structsยง
- OrgPin
- An orgโs walk order: the primary pin, then fallbacks.
Enumsยง
- Selection
Error - Why no account was selected. Loud by design: a silent fallback would route a session to an account its model cannot use.
Functionsยง
- declares ๐
truewhen the account servesmodel, by declaration or alias.- select_
account - Pick the account for
modelout oforgโs walk order: the first account whose declared models include the model. Ready accounts beat saturated ones, and Bailed accounts are the last resort. A retired account - one a reload removed - is never offered.