feat: custom global api_url

This commit is contained in:
Kieran 2026-02-16 22:25:23 +00:00 committed by Chummy
parent c4c1272580
commit 808450c48e
7 changed files with 43 additions and 10 deletions

View file

@ -209,6 +209,7 @@ pub async fn run_gateway(host: &str, port: u16, config: Config) -> Result<()> {
let provider: Arc<dyn Provider> = Arc::from(providers::create_resilient_provider(
config.default_provider.as_deref().unwrap_or("openrouter"),
config.api_key.as_deref(),
config.api_url.as_deref(),
&config.reliability,
)?);
let model = config