pub(crate) fn ai_options(
serve: &ServeArgs,
http: Option<SocketAddr>,
) -> Result<Option<AiConfig>, DevError>Expand description
Resolve the AI services options: CLI flag over {config-dir}/ai.toml
over the disabled default. Enabled via --with-ai OR [ai] enabled = true in ai.toml. When the document declares no upstreams, the zen
upstream is preconfigured (grevillea dev works out of the box, BYOK).