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

@ -749,6 +749,7 @@ pub async fn run(
let provider: Box<dyn Provider> = providers::create_routed_provider(
provider_name,
config.api_key.as_deref(),
config.api_url.as_deref(),
&config.reliability,
&config.model_routes,
model_name,
@ -1105,6 +1106,7 @@ pub async fn process_message(config: Config, message: &str) -> Result<String> {
let provider: Box<dyn Provider> = providers::create_routed_provider(
provider_name,
config.api_key.as_deref(),
config.api_url.as_deref(),
&config.reliability,
&config.model_routes,
&model_name,