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
style: apply rustfmt formatting to speech and runtime ops
Steven Enamakel89e36357d619
diff --git a/crates/openhuman-core/src/inference/host_runtime/ops/runtime_ops.rs b/crates/openhuman-core/src/inference/host_runtime/ops/runtime_ops.rsindex d16036beb7..1863e1d70a 100644--- a/crates/openhuman-core/src/inference/host_runtime/ops/runtime_ops.rs+++ b/crates/openhuman-core/src/inference/host_runtime/ops/runtime_ops.rs@@ -141,8 +141,8 @@ pub async fn local_ai_transcribe_bytes(}let service = local_ai::global(config);- let output = local_ai::service::transcribe_bytes(&service, config, audio_bytes, Some(&ext))- .await?;+ let output =+ local_ai::service::transcribe_bytes(&service, config, audio_bytes, Some(&ext)).await?;Ok(Outcome::single_log(output,"local ai transcription completed",diff --git a/crates/openhuman-core/src/inference/host_runtime/service/speech.rs b/crates/openhuman-core/src/inference/host_runtime/service/speech.rsindex 3b2c7bac37..f4fa7d1a88 100644--- a/crates/openhuman-core/src/inference/host_runtime/service/speech.rs+++ b/crates/openhuman-core/src/inference/host_runtime/service/speech.rs@@ -5,7 +5,7 @@ use base64::{engine::general_purpose::STANDARD as BASE64, Engine};use log::debug;use crate::config::Config;-use crate::voice::{SttProvider, create_stt_provider, effective_stt_provider};+use crate::voice::{create_stt_provider, effective_stt_provider, SttProvider};use tinyinference_local::models as model_ids;use tinyinference_local::status::{LocalAiSpeechResult, LocalAiTtsResult};@@ -51,8 +51,9 @@ pub async fn transcribe_with_prompt(let provider_name = effective_stt_provider(config);debug!("{LOG_PREFIX} configured STT dispatch provider={provider_name} path={audio_path}");let provider = selected_stt_provider(config, &provider_name);- let text = tinyinference_voice::transcription::transcribe_file(Path::new(audio_path), &provider)- .await?;+ let text =+ tinyinference_voice::transcription::transcribe_file(Path::new(audio_path), &provider)+ .await?;debug!("{LOG_PREFIX} configured STT complete (provider={} elapsed_ms={})",provider_name,@@ -74,8 +75,8 @@ pub async fn transcribe_bytes() -> Result<LocalAiSpeechResult, String> {let provider_name = effective_stt_provider(config);let provider = selected_stt_provider(config, &provider_name);- let text = tinyinference_voice::transcription::transcribe_bytes(audio, extension, &provider)- .await?;+ let text =+ tinyinference_voice::transcription::transcribe_bytes(audio, extension, &provider).await?;service.mark_stt_ready();Ok(LocalAiSpeechResult {text,@@ -86,10 +87,7 @@ pub async fn transcribe_bytes(type ConfiguredProviderFactory<'a> =dyn Fn(&Config) -> Result<Box<dyn SttProvider>, String> + Send + Sync + 'a;-fn selected_stt_provider<'a>(- config: &'a Config,- provider_name: &str,-) -> ConfiguredSttProvider<'a> {+fn selected_stt_provider<'a>(config: &'a Config, provider_name: &str) -> ConfiguredSttProvider<'a> {let provider_name = provider_name.to_owned();ConfiguredSttProvider {config,