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(voice): cover hosted provider listing order
Steven Enamakel8cc04084c046
diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rsindex a97382c2d8..7cd6d81bf5 100644--- a/crates/openhuman-embed/src/host_internals.rs+++ b/crates/openhuman-embed/src/host_internals.rs@@ -292,8 +292,8 @@ pub mod util {pub mod tool_sources {pub use openhuman_core::tools::sources::{register_tool_source, register_tool_source_at, register_tool_source_in,- registered_tool_source_placements, unregister_tool_source, ToolSourceCtx, ToolSourceFactory, ToolSourcePlacement,- ANCHOR_AFTER_DELEGATE, ANCHOR_AFTER_SEARCH,+ registered_tool_source_placements, unregister_tool_source, ToolSourceCtx,+ ToolSourceFactory, ToolSourcePlacement, ANCHOR_AFTER_DELEGATE, ANCHOR_AFTER_SEARCH,};}@@ -393,6 +393,7 @@ pub mod voice_registry {pub use openhuman_core::voice::factory::{create_stt_provider, create_tts_provider, SttProvider, SttResult, TtsProvider,};+ pub use openhuman_core::voice::live::ops::live_providers;pub use openhuman_core::voice::live::registry::{register_live_provider, register_live_provider_in, unregister_live_provider, ConfigureFn,ConfiguredFn, LiveFuture, LiveProviderEntry, LiveProviderPlacement, PrepareFn,diff --git a/crates/openhuman-tinyhumans/src/voice/live_tests.rs b/crates/openhuman-tinyhumans/src/voice/live_tests.rsindex acb5dcec35..36c1a726ea 100644--- a/crates/openhuman-tinyhumans/src/voice/live_tests.rs+++ b/crates/openhuman-tinyhumans/src/voice/live_tests.rs@@ -59,6 +59,31 @@ fn registration_installs_both_hosted_providers() {assert!(unregister_live_provider(LIVE_PROVIDER_ELEVENLABS_HOSTED));}+#[test]+fn hosted_providers_are_listed_ahead_of_the_built_in_ones() {+ // The catalogue has always listed the hosted providers first:+ // gemini-hosted, elevenlabs-hosted, gemini, sarvam.+ register();+ let listed = openhuman_embed::__host::voice_registry::live_providers(&Config::default());+ unregister_live_provider(LIVE_PROVIDER_GEMINI_HOSTED);+ unregister_live_provider(LIVE_PROVIDER_ELEVENLABS_HOSTED);+ let ids: Vec<_> = listed+ .value+ .providers+ .iter()+ .map(|p| p.id.as_str())+ .collect();+ assert_eq!(+ ids,+ [+ LIVE_PROVIDER_GEMINI_HOSTED,+ LIVE_PROVIDER_ELEVENLABS_HOSTED,+ "gemini",+ "sarvam"+ ]+ );+}+#[tokio::test]async fn hosted_providers_report_not_configured_without_a_backend_credential() {let dir = tempfile::tempdir().unwrap();