Files
OmniRoute/open-sse/utils/responsesEndpoint.ts
VXNCXNX 4533dd245f feat(providers): native xAI Agent Tools passthrough for /v1/responses (#9111)
Validated in local merge-train (devbox-vm-06-dev002) @ combined-tip (FAST gates green: static + changed tests + vitest — only pre-existing audit.test.ts flake). Evidence: /home/diegosouzapw/dev/proxys/OmniRoute/.claude/worktrees/merge-train-20260805-213228-suite.log
2026-08-05 21:43:40 -03:00

6 lines
297 B
TypeScript

export function isResponsesEndpointPath(endpointPath?: string | null): boolean {
let normalizedEndpoint = String(endpointPath || "");
while (normalizedEndpoint.endsWith("/")) normalizedEndpoint = normalizedEndpoint.slice(0, -1);
return normalizedEndpoint.split("/").includes("responses");
}