Config-driven pipeline that normalizes Anthropic API request bodies for Anthropic-compatible bridges.
// Source: https://github.com/MAHIAMIR45/Ominiai | License: MIT | Copyright 2026 diegosouzapw // Provided via justclaw.it.com; keep this notice with the code. /** * CC Bridge Transforms — config-driven request body normalization for the * Claude Code Compatible (`anthropic-compatible-cc-*`) bridge. * * Goal: ensure the final request body OmniRoute sends to Anthropic's * `/v1/messages?beta=true` endpoint has classifier-correct structure * regardless of which client (OpenCode, Cline, Cursor, Continue, raw API * consumer) supplied the prompt. * * Approach: an ordered pipeline of declarative `TransformOp` entries that * mutate the request body in place. Each op is idempotent; the executor is * pure (no I/O); new defenses can be added through Settings UI by appending * a new op — no ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key