Skip to content

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

docs(inference): update README for relocated OpenAI-compatible server

Steven Enamakel2c7bdc3bfb88
diff --git a/Cargo.lock b/Cargo.lock
index e83a8c9568..3cd21ddea3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -397,6 +397,7 @@ dependencies = [
"tower",
"tower-layer",
"tower-service",
+ "tracing",
]
[[package]]
@@ -415,6 +416,7 @@ dependencies = [
"sync_wrapper",
"tower-layer",
"tower-service",
+ "tracing",
]
[[package]]
@@ -7970,6 +7972,7 @@ name = "tinyinference-llm"
version = "0.4.1"
dependencies = [
"async-trait",
+ "axum",
"base64 0.23.1",
"bytes",
"futures",
@@ -7982,6 +7985,7 @@ dependencies = [
"tinytools-agent",
"tokio",
"tracing",
+ "uuid",
]
[[package]]
@@ -8683,6 +8687,7 @@ dependencies = [
"tokio",
"tower-layer",
"tower-service",
+ "tracing",
]
[[package]]
@@ -8721,6 +8726,7 @@ version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
dependencies = [
+ "log",
"pin-project-lite",
"tracing-attributes",
"tracing-core",
diff --git a/crates/openhuman-core/src/inference/README.md b/crates/openhuman-core/src/inference/README.md
index 9e8b1f6832..6a6a58ac9b 100644
--- a/crates/openhuman-core/src/inference/README.md
+++ b/crates/openhuman-core/src/inference/README.md
@@ -179,7 +179,7 @@ when they stop a turn for repeated tool failures.
### The OpenAI-compatible endpoint
-`http/server.rs` serves `/v1/chat/completions` (with SSE streaming) and `/v1/models`.
+The handlers for `/v1/chat/completions` (with SSE streaming) and `/v1/models` live in `tinyinference_llm::providers::openai::server_http`; `http/backend.rs` is the host `ChatBackend` that resolves models against `Config`.
`openhuman-rpc` mounts it with `.nest("/v1", openhuman_core::inference::http::router())`, so it sits
behind the same bearer middleware as `/rpc`. The bearer may be either the per-launch core token or
a stable user-managed key stored under the `EXTERNAL_OPENAI_COMPAT_PROVIDER` auth profile, which
@@ -208,7 +208,7 @@ picks the provider the same way a provider string does.
| `host_runtime/` | Product policy, RPC and speech bindings over `tinyinference_local`. See [`host_runtime/README.md`](host_runtime/README.md). |
| `embedding_host/` | Embedding provider selection (managed, Voyage, OpenAI, Cohere, Ollama, custom, noop) and the `embeddings.*` RPC. See [`embedding_host/README.md`](embedding_host/README.md). |
| `tokenjuice/` | Host adapter for the TinyJuice tool-output compression module, the `juice_retrieve` recovery tool, and the `tokenjuice.*` RPC. See [`tokenjuice/README.md`](tokenjuice/README.md). |
-| `http/` | OpenAI-compatible `/v1` endpoint. `server.rs` (router and handlers) is behind the `http-server` feature; `types.rs` and `EXTERNAL_OPENAI_COMPAT_PROVIDER` stay ungated because `core::auth` reads them. |
+| `http/` | OpenAI-compatible `/v1` endpoint. `backend.rs` (host `ChatBackend` and `router()`) is behind the `http-server` feature; `EXTERNAL_OPENAI_COMPAT_PROVIDER` stays ungated because `core::auth` reads it. |
## Key types and entry points