Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
36 lines
2.4 KiB
Plaintext
36 lines
2.4 KiB
Plaintext
# ─────────────────────────────────────────────────────────────────────────────
|
|
# ReelForge / Menivor — Railyard RELAY LLM metering (env-gated, OPT-IN)
|
|
# ─────────────────────────────────────────────────────────────────────────────
|
|
#
|
|
# Route Menivor's LLM calls (script / search-terms / social-metadata generation
|
|
# in app/services/llm.py) through Railyard so ALL AI spend is metered and capped.
|
|
#
|
|
# EVERYTHING here is OPT-IN. Leave these unset and the API keeps its existing
|
|
# direct-provider path unchanged (OpenAI / DeepSeek / Moonshot / Ollama / …).
|
|
# Implementation: app/domains/railyard/{config,relay,abacus,llm_gateway}.py.
|
|
|
|
# ── RELAY (TensorZero LLM gateway) ───────────────────────────────────────────
|
|
# Set RELAY_URL to route OpenAI-compatible chat to ${RELAY_URL}/openai/v1. The
|
|
# model id is rewritten to its TensorZero name automatically, e.g.
|
|
# gpt-4o-mini -> tensorzero::model_name::openai::gpt-4o-mini
|
|
# claude-3-5-* -> tensorzero::model_name::anthropic::claude-3-5-*
|
|
# RELAY_URL unset -> Relay is disabled (direct provider path).
|
|
RELAY_URL=
|
|
# Optional. gateway.auth is OFF by default, so no credential is needed today.
|
|
# If the owner later enables Relay gateway auth, set the bearer token here.
|
|
RELAY_API_KEY=
|
|
|
|
# ── ABACUS (per-key LLM spend caps, optional, fronts Relay) ──────────────────
|
|
# Set ABACUS_URL + ABACUS_API_KEY to enforce a per-key spend cap BEFORE the
|
|
# request reaches Relay. Point the Abacus deployment's UPSTREAM_BASE_URL at
|
|
# Relay so the cap sits in front of the gateway. A cap breach (HTTP 402) stops
|
|
# this key's spend (surfaced as RailyardError code="cap_exceeded"); the caller
|
|
# degrades to its direct path rather than spending past the cap.
|
|
# Both ABACUS_URL and ABACUS_API_KEY are required to enable Abacus.
|
|
ABACUS_URL=
|
|
ABACUS_API_KEY=
|
|
# Per-key identity charged/capped against, sent as `X-Abacus-Agent: agent_<id>`.
|
|
# Without an agent id, the Abacus gate is skipped and the request falls through
|
|
# to Relay/direct.
|
|
ABACUS_AGENT_ID=
|