feat: custom global api_url
This commit is contained in:
parent
c4c1272580
commit
808450c48e
7 changed files with 43 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue