From 8dd9749a93f27246ba61b4f1e0916a09e33eff2b Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Wed, 3 Jun 2026 19:47:42 -0300 Subject: [PATCH] fix(build): correct modelResolution import path in responses route (#3113) The webpack build failed: route.ts imported '../internal/codex-responses-ws/ modelResolution' (resolves to api/v1/internal/, which doesn't exist). The module lives at api/internal/codex-responses-ws/. Switched to the @/app/api/... alias. typecheck/tests passed (tsx resolves leniently; tests import the module directly), only the production build caught it. --- src/app/api/v1/responses/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/v1/responses/route.ts b/src/app/api/v1/responses/route.ts index 163471cace..b7445152ed 100644 --- a/src/app/api/v1/responses/route.ts +++ b/src/app/api/v1/responses/route.ts @@ -1,6 +1,6 @@ import { handleChat } from "@/sse/handlers/chat"; import { withEarlyStreamKeepalive } from "@omniroute/open-sse/utils/earlyStreamKeepalive"; -import { resolveResponsesApiModel } from "../internal/codex-responses-ws/modelResolution"; +import { resolveResponsesApiModel } from "@/app/api/internal/codex-responses-ws/modelResolution"; import { getModelInfo } from "@/sse/services/model"; // NOTE: We do NOT call initTranslators() here — the translator registry is