applyTransformPipeline (services/systemTransforms.ts)

iskyewinter-collab/Omniroute · open-sse/services/systemTransforms.ts · typescript · MIT
ai

* System Transforms — generic, per-provider, config-driven body normalization. Generalises the CC-bridge-only transforms (`ccBridgeTransforms.ts`) into a per-provider registry so the same pipeline DSL can run against ANY provider's request body: native `claude` OAuth, `anthropic-

// Source: https://github.com/iskyewinter-collab/Omniroute | License: MIT | Copyright 2026 diegosouzapw
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * System Transforms — generic, per-provider, config-driven body normalization.
 *
 * Generalises the CC-bridge-only transforms (`ccBridgeTransforms.ts`) into
 * a per-provider registry so the same pipeline DSL can run against ANY
 * provider's request body: native `claude` OAuth, `anthropic-compatible-cc-*`
 * bridge, `gemini`, `codex`, `openai`, etc.
 *
 * Each provider has its own `{ enabled, pipeline }`. Defaults shipped:
 *   - `claude`: obfuscate_words ON (adds Open WebUI words on top of native
 *     ZWJ pass). Billing+sentinel handled by native code (executors/base.ts
 *     :753-782); DSL on this path does NOT 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key