pub trait ModelEndpoint {
// Required method
fn uri(&self) -> &'static str;
}Expand description
One trait per family-endpoint enum. Returns the URI template for the chosen
variant — a literal URL for fixed endpoints (https://api.openai.com/v1),
or a substitution template for computed endpoints (Azure’s
https://{resource}.openai.azure.com/...). Substitution happens family-side
in the runtime constructor; for non-templated families the return value is
the final URL.
Resolution order at runtime is uniform across every model model_provider family:
operator’s cfg.uri first; family endpoint enum’s uri() second; loud
failure when neither is set.