Skip to content

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

chore: files changed crates/openhuman-embed/examples/telegram.rs,crates/openhuman-embed/tests/channe

Steven Enamakelf1ff895332d6
diff --git a/crates/openhuman-embed/examples/telegram.rs b/crates/openhuman-embed/examples/telegram.rs
index f7e94dc585..ceb4e6a20f 100644
--- a/crates/openhuman-embed/examples/telegram.rs
+++ b/crates/openhuman-embed/examples/telegram.rs
@@ -13,6 +13,10 @@ fn main() -> anyhow::Result<()> {
async fn run() -> anyhow::Result<()> {
let backend = support::stub_backend().await;
let provider = support::provider("hello from the stub").await;
+ // The channel runtime builds its default chat model from the config's
+ // managed provider before any bound agent runs. The core carries no hosted
+ // provider, so register one that sends inference to the stub.
+ support::PointedInference::install(&format!("{}/v1", provider.uri()));
let runtime = Runtime::builder()
.config(support::offline_config())
.workspace(Workspace::Ephemeral)
diff --git a/crates/openhuman-embed/tests/channel_agents.rs b/crates/openhuman-embed/tests/channel_agents.rs
index bf06f5af58..00d6667614 100644
--- a/crates/openhuman-embed/tests/channel_agents.rs
+++ b/crates/openhuman-embed/tests/channel_agents.rs
@@ -142,6 +142,7 @@ async fn sent_texts(server: &MockServer) -> Vec<String> {
#[test]
fn a_telegram_message_is_answered_by_the_bound_runtime_agent() {
+ let _ = env_logger::builder().is_test(true).try_init();
runtime().block_on(async {
tokio::spawn(async {
let backend = stub_backend().await;