Skip to main content

Module sidecar

Module sidecar 

Source
Expand description

Sidecar model adapter — POSTs to the Python model-seam sidecar.

Set JAMJET_MODEL_SEAM_URL (e.g. http://127.0.0.1:4280) to route durable-path model calls through the governed Python seam (provider allow-list, PII redaction, cost metering, middleware).

Sidecar contract:

  • POST /v1/complete{model, messages, temperature?, max_tokens?}{message:{content,role}, input_tokens, output_tokens, cost_usd, model, finish_reason}
  • GET /health{ok:true}

Structs§

SidecarModelAdapter
Routes durable-path model calls to the Python model-seam sidecar via HTTP.

Functions§

check_sidecar_health
Probe the sidecar /health endpoint at startup.