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