Request & Response Transforms
Transforms allow you to adjust incoming requests, inject default hyperparameters, or modify response payloads without modifying client code.
config.jsonc
Practical Scenarios
- Parameter Clamping: Ensure consistent temperature or enforce context length limits across different clients.
- Model Rewriting: Expose a unified model name (
gpt-5) externally, while mapping to provider-specific model IDs internally (gpt-5-2026-preview). - Response Headers: Inject custom debugging headers or trace IDs into client responses.