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.
This commit is contained in:
diegosouzapw
2026-06-03 19:47:42 -03:00
parent 49bfe982c2
commit 8dd9749a93

View File

@@ -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