Skip to content

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

chore(inference): trim stale comments and unused log fields

Steven Enamakel8d6d62540eb4
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.rs
index 954a592ff7..d16036beb7 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
@@ -39,11 +39,8 @@ fn local_ai_status_snapshot(
} else {
None
};
- // `LocalAiService` is a process-wide singleton whose cached `provider`
- // field was set at first init from whichever config it saw. After an
- // `inference_update_local_settings` call that swaps providers
- // (e.g. ollama → lm_studio) the cached value is stale, so we overlay
- // the current config's provider on the status snapshot before returning.
+ // The service snapshot uses this call's configured provider, even though
+ // the process-wide service may have been initialized with another one.
(snapshot, bootstrap_task)
}
diff --git a/crates/openhuman-core/src/inference/host_runtime/service/speech.rs b/crates/openhuman-core/src/inference/host_runtime/service/speech.rs
index b8d9ec099c..d98cf13597 100644
--- a/crates/openhuman-core/src/inference/host_runtime/service/speech.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/service/speech.rs
@@ -53,14 +53,9 @@ pub async fn transcribe_with_prompt(
let provider = selected_stt_provider(config, &provider_name)?;
let text = tinyinference_voice::transcription::transcribe_file(Path::new(audio_path), &provider)
.await?;
- let bytes = tokio::fs::metadata(audio_path)
- .await
- .map(|metadata| metadata.len())
- .unwrap_or_default();
debug!(
- "{LOG_PREFIX} configured STT complete (provider={} bytes={} elapsed_ms={})",
+ "{LOG_PREFIX} configured STT complete (provider={} elapsed_ms={})",
provider_name,
- bytes,
started.elapsed().as_millis()
);
service.mark_stt_ready();