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
fix(voice): guard managed bearer token on non-HTTPS endpoints
Steven Enamakel11e80af67fbf
diff --git a/crates/openhuman-core/src/voice/cloud_transcribe.rs b/crates/openhuman-core/src/voice/cloud_transcribe.rsindex 796c80a6d6..644d04f4dd 100644--- a/crates/openhuman-core/src/voice/cloud_transcribe.rs+++ b/crates/openhuman-core/src/voice/cloud_transcribe.rs@@ -21,11 +21,15 @@ pub async fn transcribe_cloud(let url = client.url_for("/openai/v1/audio/transcriptions").map_err(|error| error.to_string())?;- if is_api_key- && !crate::inference::provider::openhuman_backend_model::is_managed_endpoint_for_api_key(+ let safe_for_bearer =+ crate::inference::provider::openhuman_backend_model::is_safe_endpoint_for_managed_bearer(url.as_str(),- )- {+ );+ let managed_for_api_key =+ crate::inference::provider::openhuman_backend_model::is_managed_endpoint_for_api_key(+ url.as_str(),+ );+ if !safe_for_bearer || (is_api_key && !managed_for_api_key) {return Err("refusing to send the TinyHumans API key over a non-HTTPS, non-loopback endpoint".to_string(),