The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(inference): add chat-aware embedder helper and use build_cloud_model
Steven Enamakel412019f7b190
diff --git a/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rs b/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rsindex 7af524a617..6b3d7ab659 100644--- a/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rs+++ b/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rs@@ -139,13 +139,20 @@ async fn find_embedding_disclosure(}fn unreachable_embedder(model: &str) -> CloudEmbeddingModel {+ unreachable_embedder_with_chat(model, None)+}++fn unreachable_embedder_with_chat(+ model: &str,+ chat: Option<ApprovalChatContext>,+) -> CloudEmbeddingModel {build_cloud_model(Some("http://127.0.0.1:0".into()),std::env::temp_dir().join("openhuman_embeddings_routing_state"),false,model,DEFAULT_CLOUD_DIMENSIONS,- None,+ chat,)}@@ -470,7 +477,7 @@ async fn offline_local_session_is_refused_before_embedding_request() {true,).unwrap();- let provider = ManagedEmbeddingModel::new(+ let provider = build_cloud_model(Some(format!("http://{addr}")),tmp.path().to_path_buf(),false,@@ -540,7 +547,7 @@ async fn expired_session_publishes_session_expired_before_embedding_request() {true,).unwrap();- let provider = ManagedEmbeddingModel::new(+ let provider = build_cloud_model(Some(format!("http://{addr}")),tmp.path().to_path_buf(),false,