pub struct RouteConfig {
pub name: String,
pub max_parallel: Option<usize>,
pub group: Option<String>,
pub config: ProviderConfig,
}Expand description
One [[provider.route]]: a name and a complete ProviderConfig.
Not a delta over [provider]. A chain whose entries inherit half their settings from the
one before is a debugging hazard — “which timeout_secs did the third hop use?” should
have the answer “the one written under it”.
Fields§
§name: StringWhat --route, fallback and the readout call this route.
max_parallel: Option<usize>How many flares this route may run at once (#171). Unset takes the profile’s default:
one for a local server, which serves one model and swaps rather than multiplying, and four
for an OpenAI-compatible API, where the limit is money and rate, not hardware. 0 reads
as 1, the same rule ToolsConfig::concurrency keeps, because a route with no slot is
a route flares cannot use and silently starving them is worse than a slow run.
group: Option<String>Routes that share one server share its bound (#171): two local routes pointed at the same
llama-swap are one slot, not two, because it swaps by stopping one model to start another.
A group takes its lowest member’s bound, the conservative reading of “these are the
same box”.
config: ProviderConfigTrait Implementations§
Source§impl Clone for RouteConfig
impl Clone for RouteConfig
Source§impl Debug for RouteConfig
impl Debug for RouteConfig
Source§impl<'de> Deserialize<'de> for RouteConfig
Written by hand because #[serde(flatten)] buffers the table and then reports a wrong-typed
value as “invalid type … in provider.route”, dropping the key. A route is exactly where a
misread setting is hardest to spot, so the error says which route and which key.
impl<'de> Deserialize<'de> for RouteConfig
Written by hand because #[serde(flatten)] buffers the table and then reports a wrong-typed
value as “invalid type … in provider.route”, dropping the key. A route is exactly where a
misread setting is hardest to spot, so the error says which route and which key.