Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(channels): use runtime proxy client for yuanbao credential verification

Steven Enamakelf879fa00ea7d
diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect/connect_channel.rs b/crates/openhuman-core/src/channels/controllers/ops/connect/connect_channel.rs
index c1802bb281..2f0b119dad 100644
--- a/crates/openhuman-core/src/channels/controllers/ops/connect/connect_channel.rs
+++ b/crates/openhuman-core/src/channels/controllers/ops/connect/connect_channel.rs
@@ -70,7 +70,12 @@ pub async fn connect_channel(
let app_secret = require_yuanbao_field(creds_map, "app_secret")?;
let base = config.channels_config.yuanbao.clone().unwrap_or_default();
let effective = build_effective_yuanbao_config(base, creds_map, app_key);
- verify_yuanbao_credentials(reqwest::Client::new(), &effective, &app_secret).await?;
+ verify_yuanbao_credentials(
+ crate::config::build_runtime_proxy_client("channel.yuanbao"),
+ &effective,
+ &app_secret,
+ )
+ .await?;
prebuilt_yuanbao_config = Some(effective);
}