Module: Routing & Cross-Protocol Translation
Chinese Source Guide
Full source-anchored notes are maintained in Chinese at repo-docs/modules/routing-and-protocols.md.
- Ingress: OpenAI (
/v1/models,/v1/chat/completions,/v1/completions,/v1/embeddings), Anthropic (/v1/messages), Gemini (/v1beta/models/*,/v1/models/*;:countTokensreturns501). - Resolution & Checks:
resolveModelNameresolvesupstream:<accountId>:<model>,@cf/, provider prefixes, adminmodelMap, and the 65-entryDEFAULT_MODEL_MAP.validateReplayMetadataandvalidateToolStrictnessfail fast (400) on unrepresentable constraints or tampered replay payloads.