Open-source inference server and production cluster for all the models your agent needs.
Python bgecolbertdata-pipelinedeep-learningembeddingsinferenceinference-serverinformation-retrievalllmmlmlopsnatural-language-processingnlppythonrerankingretrievalretrieval-augmented-generationsemantic-searchspladevector-search
feat(gateway): count /v1/systemone under the extract metrics label
Rahul Parundekarcea23d93a9a7
diff --git a/packages/sie_gateway/src/middleware/metrics.rs b/packages/sie_gateway/src/middleware/metrics.rsindex 00edce296..5c222a1ed 100644--- a/packages/sie_gateway/src/middleware/metrics.rs+++ b/packages/sie_gateway/src/middleware/metrics.rs@@ -9,8 +9,8 @@//!//! Only inference endpoints (`/v1/encode/*`, `/v1/score/*`,//! `/v1/extract/*`, `/v1/generate/*`, `/v1/embeddings`, `/v1/moderations`, and-//! the OpenAI-compatible generation/audio routes) populate `sie.gateway.requests` +-//! `sie.gateway.request.duration`. Infrastructure paths+//! the OpenAI-compatible generation/audio and System One routes) populate+//! `sie.gateway.requests` + `sie.gateway.request.duration`. Infrastructure paths//! (`/health*`, `/ws/*`, `/v1/configs/*`, `/v1/pools`,//! `/v1/models`) are intentionally skipped: they are not traffic, and//! counting them would drown the inference error-rate dashboards.@@ -314,8 +314,8 @@ impl HttpBody for ObservedBody {/// otherwise `None`. Every generation surface/// intentionally collapses to `generate`: the route spelling is bounded HTTP/// metadata, while the operational work and service-level objective are shared.-/// The OpenAI audio transcription surface similarly collapses to its native-/// `extract` primitive.+/// The OpenAI audio transcription and System One decision surfaces similarly+/// collapse to their native `extract` primitive./// Non-inference/// paths are intentionally excluded — see module-level docs.///@@ -340,7 +340,7 @@ fn classify_endpoint(path: &str) -> Option<&'static str> {Some("embeddings")} else if path == "/v1/moderations" {Some("moderations")- } else if path == "/v1/audio/transcriptions" {+ } else if matches!(path, "/v1/audio/transcriptions" | "/v1/systemone") {Some("extract")} else {None@@ -898,6 +898,8 @@ mod tests {classify_endpoint("/v1/audio/transcriptions"),Some("extract"));+ assert_eq!(classify_endpoint("/v1/systemone"), Some("extract"));+ assert_eq!(classify_endpoint("/v1/systemone/extra"), None);assert_eq!(classify_endpoint("/health"), None);assert_eq!(classify_endpoint("/healthz"), None);assert_eq!(classify_endpoint("/readyz"), None);