Skip to content

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

refactor(inference): use reqwest for url parsing in endpoint redaction

Steven Enamakelf46c182655f0
diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rs
index 89ddf2bd94..00455cf810 100644
--- a/crates/openhuman-core/src/inference/provider/factory.rs
+++ b/crates/openhuman-core/src/inference/provider/factory.rs
@@ -107,7 +107,7 @@ use tinyinference_llm::providers::openai::codex::{
/// OpenHuman endpoints may carry credentials in path segments. Keep this host
/// log policy origin-only and never fall back to the unparsed input.
pub fn redact_endpoint_origin(endpoint: &str) -> String {
- let Ok(url) = url::Url::parse(endpoint.trim()) else {
+ let Ok(url) = reqwest::Url::parse(endpoint.trim()) else {
return "<endpoint>".to_string();
};
tinyinference_core::sanitize::redact_url(&url.origin().ascii_serialization())