Skip to content

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

fix(backend): remove unused import to resolve compiler warning

Steven Enamakel95155636759d
diff --git a/crates/openhuman-tinyhumans/src/backend/mod.rs b/crates/openhuman-tinyhumans/src/backend/mod.rs
new file mode 100644
index 0000000000..94a28704d5
--- /dev/null
+++ b/crates/openhuman-tinyhumans/src/backend/mod.rs
@@ -0,0 +1,25 @@
+//! Everything host-specific about reaching the TinyHumans backend: where it
+//! is, how requests are attributed, and who they are attributed to.
+//!
+//! The core knows none of this. It asks the installed
+//! [`BackendTransport`](openhuman_core::backend::BackendTransport) —
+//! [`SdkBackendTransport`](crate::SdkBackendTransport) — which answers from
+//! these modules:
+//!
+//! - [`url`] — base-URL resolution: the production/staging defaults,
+//! `BACKEND_URL` / `VITE_BACKEND_URL` overrides, and the guard that keeps an
+//! `api_url` pointed at an inference endpoint away from control-plane calls.
+//! - [`headers`] — the attribution headers (`x-core-version`,
+//! `x-tauri-version`, `x-sdk-name`) and per-profile `reqwest` clients.
+//! - [`product`] — the process-wide product identity (`x-sdk-name`), set once
+//! at startup by [`crate::install`] or an embedding product.
+
+pub mod headers;
+pub mod product;
+pub mod url;
+
+pub use product::{
+ product_identity, product_identity_header, product_identity_headers, set_product_identity,
+ ProductIdentity, DEFAULT_PRODUCT_IDENTITY, PRODUCT_IDENTITY_HEADER,
+};
+pub use url::{effective_api_url, effective_backend_api_url, DEFAULT_API_BASE_URL};